Project Date
NLTEST 17 Sep 2020, 18:18

Failures Overview

The following summary displays scenarios that failed.

30.574
Scenario getbrief list
Steps
* def knownlinks = karate.jsonPath(karate.read('classpath:InspireTest/ngr/datasetrecords/def/knownlink.csv'), '[*].knownlink') 0.037
18:04:51.256 karate.env system property was:
* url 'http://nationaalgeoregister.nl/' 0.000
Given path 'geonetwork/srv/dut/inspire' 0.007
And param service = 'CSW' 0.004
And param version = '2.0.2' 0.001
And param request = 'GetRecords' 0.020
And param propertyName = 'identifier' 0.001
And param typeNames = 'csw:Record' 0.002
And param elementsetname = "brief" 0.001
And param resultType = 'results' 0.001
And param startposition = 1 0.001
And param maxRecords = 1000 0.007
When method get 30.485
com.intuit.karate.exception.KarateException: getcswbriefrecords.feature:25 - 
java.net.SocketTimeoutException: Read timed out
18:05:22.041 java.net.SocketTimeoutException: Read timed out, http call failed after 30244 milliseconds for URL: http://nationaalgeoregister.nl/geonetwork/srv/dut/inspire?service=CSW&version=2.0.2&request=GetRecords&propertyName=identifier&typeNames=csw%3ARecord&elementsetname=brief&resultType=results&startposition=1&maxRecords=1000
18:05:22.041 http request failed: 
java.net.SocketTimeoutException: Read timed out
Then status 200 0.000
* def briefarray = get response /GetRecordsResponse/SearchResults/BriefRecord[type = 'dataset']/identifier 0.000
* eval karate.embed( briefarray,'text/plain') 0.000
* def list = karate.mapWithKey(briefarray ,'datasetIdentifierCode') 0.000
* def json = karate.map(list, function(x, i){ return {} }) 0.000
Given url 'https://inspire.ec.europa.eu/metadata-codelist/metadata-codelist.nl.json' 0.000
When method get 0.000
Then status 200 0.000
* print response 0.000
* def inspirecodelist = get response.register.containeditems[*]["metadata-codelist"].id 0.000
* print inspirecodelist 0.000
1:1.151
Scenario Outline check known link http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43
Steps
* def nlinks = ["http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43"] 0.000
* print nlinks 0.000
18:04:55.384 [print] [
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43"
]
* def title = "known url" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 30.578
com.intuit.karate.exception.KarateException: check-known-links.feature:10 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/check-known-links.feature
items: [{link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43"}
checkxlinkurl.template.feature:14 - 
java.net.SocketTimeoutException: Read timed out
18:05:25.963 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43"}
checkxlinkurl.template.feature:14 - 
java.net.SocketTimeoutException: Read timed out
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43"
}
> * print "testing xlinkurl: 0.003
18:04:55.390 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:04:55.393 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43
> Given url link 0.000
> When method HEAD 30.566
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.SocketTimeoutException: Read timed out
18:05:25.962 java.net.SocketTimeoutException: Read timed out, http call failed after 30356 milliseconds for URL: http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesDistribution-dir-1992-43
18:05:25.962 http request failed: 
java.net.SocketTimeoutException: Read timed out
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
47.370
Scenario Outline Check dataset record in ngr voor 19165027-a13a-4c19-9013-ec1fd191019d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.006
And param id = '19165027-a13a-4c19-9013-ec1fd191019d' 0.001
And param elementsetname = 'full' 0.004
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.667
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '19165027-a13a-4c19-9013-ec1fd191019d' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.002
* print 'title:' + title 0.000
18:07:05.543 [print] title:Wetlands (RAMSAR) (INSPIRE Geharmoniseerd)
* print title 0.000
18:07:05.543 [print] Wetlands (RAMSAR) (INSPIRE Geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.009
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.047
* print nlinks 0.000
18:07:05.600 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "19165027-a13a-4c19-9013-ec1fd191019d" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 23.323
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 973, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:07:28.925 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 973, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:07:05.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:05.619 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.847
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d"
}
> * print "testing xlinkurl: 0.001
18:07:06.469 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.469 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/19165027-a13a-4c19-9013-ec1fd191019d
> Given url link 0.000
> When method HEAD 0.223
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:07:06.695 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.695 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.572
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.001
18:07:07.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:07.272 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.569
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:07.843 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:07.844 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 19.281
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.017
18:07:27.144 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:27.145 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.780
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 973, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:07:28.925 status code was: 404, expected: 200, response time: 973, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
38.011
Scenario Outline Check dataset record in ngr voor e3b0da1e-0664-4025-b3f5-a54d74a26450
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e3b0da1e-0664-4025-b3f5-a54d74a26450' 0.001
And param elementsetname = 'full' 0.003
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.004
When method get 0.595
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.005
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e3b0da1e-0664-4025-b3f5-a54d74a26450' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.002
* print 'title:' + title 0.002
18:07:05.479 [print] title:zoutvelden en zoutproductieputten onder INSPIRE
* print title 0.000
18:07:05.480 [print] zoutvelden en zoutproductieputten onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.005
* def ObjectValues = 0.004
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.001
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.119
* print nlinks 0.000
18:07:05.611 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/34",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "e3b0da1e-0664-4025-b3f5-a54d74a26450" 0.004
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 18.633
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/34}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 691, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 649, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"
}
> * print "testing xlinkurl: 0.002
18:07:05.620 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:05.621 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b
> Given url link 0.000
> When method HEAD 0.284
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
18:07:05.905 status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"
}
> * print "testing xlinkurl: 0.000
18:07:05.906 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 284, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesce4a6d93-83d6-4397-afa1-d4117d5ce76b, response: 
18:07:05.907 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:05.907 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/34
> Given url link 0.000
> When method HEAD 0.691
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 691, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
18:07:06.599 status code was: 404, expected: 200, response time: 691, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
18:07:06.599 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/34"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 691, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/34, response: 
18:07:06.602 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.603 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.922
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 649, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:07.526 status code was: 404, expected: 200, response time: 649, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.001
18:07:07.526 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 649, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:07.528 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:07.528 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:07.846 status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:07.848 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:07.850 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:07.850 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 16.397
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
45.492
Scenario Outline Check dataset record in ngr voor b61a773c-ecad-4e60-93e9-0a4caac0b52f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.006
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b61a773c-ecad-4e60-93e9-0a4caac0b52f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.049
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b61a773c-ecad-4e60-93e9-0a4caac0b52f' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:07:05.935 [print] title:Olie- en gasvelden onder INSPIRE
* print title 0.000
18:07:05.941 [print] Olie- en gasvelden onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:07:05.945 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/33",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "b61a773c-ecad-4e60-93e9-0a4caac0b52f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 22.217
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/33}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 318, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 319, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 400, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 330, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"
}
> * print "testing xlinkurl: 0.003
18:07:05.957 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:07:05.958 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 318, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
18:07:06.278 status code was: 404, expected: 200, response time: 318, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"
}
> * print "testing xlinkurl: 0.000
18:07:06.278 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 318, url: https://nationaalgeoregister.nl/geonetwork/srv/resources49e49382-674d-4ce8-9f4a-ba4dd2265eef, response: 
18:07:06.279 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.279 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/33
> Given url link 0.000
> When method HEAD 0.319
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 319, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
18:07:06.599 status code was: 404, expected: 200, response time: 319, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
18:07:06.599 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/33"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 319, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/33, response: 
18:07:06.600 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.600 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 400, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:07.277 status code was: 404, expected: 200, response time: 400, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.002
18:07:07.277 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 400, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:07.280 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:07.280 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.330
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 330, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:07.611 status code was: 500, expected: 200, response time: 330, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:07.612 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 330, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:07.616 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:07.617 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 20.547
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
20.712
Scenario Outline Check dataset record in ngr voor 7dd1fd45-ace5-41e0-93a6-64e3be231717
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7dd1fd45-ace5-41e0-93a6-64e3be231717' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.127
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7dd1fd45-ace5-41e0-93a6-64e3be231717' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.002
* print 'title:' + title 0.000
18:07:06.018 [print] title:Administratieve Eenheden (INSPIRE geharmoniseerd)
* print title 0.001
18:07:06.020 [print] Administratieve Eenheden (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.011
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
18:07:06.035 [print] [
  "http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "7dd1fd45-ace5-41e0-93a6-64e3be231717" 0.006
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 9.779
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"
}
> * print "testing xlinkurl: 0.021
18:07:06.065 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.066 [print] testing xlinkurl:http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1
> Given url link 0.000
> When method HEAD 0.061
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:07:06.127 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 34 milliseconds for URL: http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1
18:07:06.127 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:06.127 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/29f0fa66-3928-4e95-ae30-5b1eab818ac1"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:07:06.128 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.129 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.665
Scenario Outline Check dataset record in ngr voor f99e915a-75e5-4c36-97f2-61eff692d85b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f99e915a-75e5-4c36-97f2-61eff692d85b' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.905
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f99e915a-75e5-4c36-97f2-61eff692d85b' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.002
18:07:05.798 [print] title:Grondwateronderzoek onder INSPIRE
* print title 0.000
18:07:05.799 [print] Grondwateronderzoek onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.005
* print nlinks 0.007
18:07:05.814 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "f99e915a-75e5-4c36-97f2-61eff692d85b" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.869
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"
}
> * print "testing xlinkurl: 0.001
18:07:05.821 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.004
18:07:05.826 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77
> Given url link 0.000
> When method HEAD 0.305
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
18:07:06.132 status code was: 404, expected: 200, response time: 302, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.001
18:07:06.132 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7e290e63-f991-4cc3-beff-1ff08ce2be77, response: 
18:07:06.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.135 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.536
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:06.671 status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:06.671 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 536, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:06.673 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.674 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.094
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.004
18:07:06.774 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.775 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.911
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.222
Scenario Outline Check dataset record in ngr voor f44dac86-2228-412f-8355-e56446ca9933
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f44dac86-2228-412f-8355-e56446ca9933' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.140
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f44dac86-2228-412f-8355-e56446ca9933' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.019
* print 'title:' + title 0.009
18:07:06.066 [print] title:Gebieden in de Eemsmonding en de Dollard
* print title 0.000
18:07:06.066 [print] Gebieden in de Eemsmonding en de Dollard
* def xlinks = get response /GetRecordByIdResponse//@href 0.018
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.006
18:07:06.093 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "www.hydro.nl"
]
* def id = "f44dac86-2228-412f-8355-e56446ca9933" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.014
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=www.hydro.nl}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 438, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:18.110 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"
}
> * print "testing xlinkurl: 0.015
18:07:06.118 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.118 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933
> Given url link 0.000
> When method HEAD 0.438
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 438, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
18:07:06.557 status code was: 500, expected: 200, response time: 438, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:06.558 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 438, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf44dac86-2228-412f-8355-e56446ca9933, response: 
18:07:06.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.559 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.076
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:06.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.638 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.468
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "www.hydro.nl"
}
> * print "testing xlinkurl: 0.000
18:07:18.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:18.109 [print] testing xlinkurl:www.hydro.nl
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:18.109 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: www.hydro.nl
18:07:18.110 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.178
Scenario Outline Check dataset record in ngr voor 002d9127-c16d-4b8d-9f5e-102a8c8e36c4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '002d9127-c16d-4b8d-9f5e-102a8c8e36c4' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.050
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '002d9127-c16d-4b8d-9f5e-102a8c8e36c4' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.002
18:07:05.958 [print] title:Geluidkaart hoofdspoornet 2016 (Lnight)
* print title 0.000
18:07:05.958 [print] Geluidkaart hoofdspoornet 2016 (Lnight)
* def xlinks = get response /GetRecordByIdResponse//@href 0.004
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.008
18:07:05.974 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "002d9127-c16d-4b8d-9f5e-102a8c8e36c4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.056
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 287, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"
}
> * print "testing xlinkurl: 0.000
18:07:05.986 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:05.986 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4
> Given url link 0.000
> When method HEAD 0.287
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 287, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
18:07:06.275 status code was: 400, expected: 200, response time: 287, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:06.275 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 287, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records/002d9127-c16d-4b8d-9f5e-102a8c8e36c4, response: 
18:07:06.276 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.276 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.218
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:06.497 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.497 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.533
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:9.422
Scenario Outline Check dataset record in ngr voor 3703b249-a0eb-484e-ba7a-10e31a55bcec
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3703b249-a0eb-484e-ba7a-10e31a55bcec' 0.029
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 1.053
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3703b249-a0eb-484e-ba7a-10e31a55bcec' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.003
18:07:05.997 [print] title:Invasieve Exoten (INSPIRE Geharmoniseerd)
* print title 0.000
18:07:05.997 [print] Invasieve Exoten (INSPIRE Geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.006
* print nlinks 0.001
18:07:06.006 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "579"
]
* def id = "3703b249-a0eb-484e-ba7a-10e31a55bcec" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 34.164
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=579}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"579"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:40.172 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"579"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.009
18:07:06.020 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.021 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.597
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"
}
> * print "testing xlinkurl: 0.001
18:07:06.620 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.621 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec
> Given url link 0.000
> When method HEAD 0.322
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
18:07:06.944 status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:06.944 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3703b249-a0eb-484e-ba7a-10e31a55bcec, response: 
18:07:06.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:06.946 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 33.220
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "579"
}
> * print "testing xlinkurl: 0.000
18:07:40.171 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:40.172 [print] testing xlinkurl:579
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:40.172 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 579
18:07:40.172 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
17.385
Scenario Outline Check dataset record in ngr voor 3a72b9a4-cda9-11ea-87d0-0242ac130003
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3a72b9a4-cda9-11ea-87d0-0242ac130003' 0.004
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3a72b9a4-cda9-11ea-87d0-0242ac130003' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:14.569 [print] title:Grondwater Monitoring Net
* print title 0.000
18:07:14.569 [print] Grondwater Monitoring Net
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:07:14.573 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "3a72b9a4-cda9-11ea-87d0-0242ac130003" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 8.430
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 296, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"
}
> * print "testing xlinkurl: 0.000
18:07:14.579 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:14.580 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 296, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
18:07:14.877 status code was: 404, expected: 200, response time: 296, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:07:14.877 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 296, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcesff07bd5a-d6eb-11ea-87d0-0242ac130003, response: 
18:07:14.879 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:14.879 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:15.193 status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:15.194 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:15.196 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:15.196 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.087
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:15.286 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:15.287 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.719
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
7.724
Scenario Outline Check dataset record in ngr voor af135cd8-d429-4fc7-b9e3-09e15217520d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'af135cd8-d429-4fc7-b9e3-09e15217520d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.553
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af135cd8-d429-4fc7-b9e3-09e15217520d' 0.002
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.001
18:07:16.382 [print] title:Gemeten fijnere fractie van Fijn stof concentraties in buitenlucht.
* print title 0.000
18:07:16.383 [print] Gemeten fijnere fractie van Fijn stof concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.002
18:07:16.389 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "af135cd8-d429-4fc7-b9e3-09e15217520d" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.586
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.002
18:07:16.403 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:16.404 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.530
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"
}
> * print "testing xlinkurl: 0.004
18:07:16.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:16.946 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db
> Given url link 0.000
> When method HEAD 0.476
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:17.422 javax.net.ssl.SSLException: Connection reset, http call failed after 474 milliseconds for URL: https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db
18:07:17.423 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:17.424 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#df9bc66f-941b-4c38-a104-1b8d940a53db"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:17.425 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:17.426 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.510
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:17.939 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:17.939 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.062
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:18.004 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:18.004 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.973
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
13.755
Scenario Outline Check dataset record in ngr voor 500d396f-5ec6-4e4b-a151-5fb3cddd8082
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '500d396f-5ec6-4e4b-a151-5fb3cddd8082' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.525
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '500d396f-5ec6-4e4b-a151-5fb3cddd8082' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:18.563 [print] title:Gemeten Zwaveldioxide concentraties in buitenlucht.
* print title 0.000
18:07:18.563 [print] Gemeten Zwaveldioxide concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:07:18.566 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "500d396f-5ec6-4e4b-a151-5fb3cddd8082" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 6.613
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:18.571 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:18.571 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.594
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"
}
> * print "testing xlinkurl: 0.001
18:07:19.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:19.168 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:19.526 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b
18:07:19.526 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:07:19.526 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#440c4a06-6924-4f9c-a9e2-6f61340f711b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:19.529 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:19.530 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.541
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:20.074 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:20.074 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.003
18:07:20.145 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:20.146 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 5.034
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
56.078
Scenario Outline Check dataset record in ngr voor f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:18.638 [print] title:Gemeten Stikstofmonoxide concentraties in buitenlucht.
* print title 0.000
18:07:18.639 [print] Gemeten Stikstofmonoxide concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
18:07:18.643 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "f91c6ad6-62a5-46d0-8a5b-8a62e7a4b833" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 27.775
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:18.647 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:18.648 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.582
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"
}
> * print "testing xlinkurl: 0.000
18:07:19.232 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:19.232 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:19.590 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25
18:07:19.590 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.002
18:07:19.590 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b867ba72-5a7c-41fe-b997-394b56dfbd25"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:19.593 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:19.594 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.523
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:20.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:20.120 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.124
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:20.247 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:20.248 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 26.171
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:4.102
Scenario Outline Check dataset record in ngr voor a322184d-6285-4856-bb78-f450b30ffc0e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a322184d-6285-4856-bb78-f450b30ffc0e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.536
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a322184d-6285-4856-bb78-f450b30ffc0e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.004
18:07:20.526 [print] title:Bathymetrie Nederlands deel van de Noordzee dieper dan 10 m LAT
* print title 0.001
18:07:20.527 [print] Bathymetrie Nederlands deel van de Noordzee dieper dan 10 m LAT
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:07:20.531 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7",
  "www.hydro.nl",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "a322184d-6285-4856-bb78-f450b30ffc0e" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:1.777
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7}, {link=www.hydro.nl}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 536, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:08:22.311 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"
}
> * print "testing xlinkurl: 0.001
18:07:20.536 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:20.537 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7
> Given url link 0.000
> When method HEAD 0.536
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 536, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
18:07:21.074 status code was: 404, expected: 200, response time: 536, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "www.hydro.nl"
}
> * print "testing xlinkurl: 0.000
18:07:21.074 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 536, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources9d973c4a-ef03-4785-b7f6-942e86b385f7, response: 
18:07:21.075 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:21.076 [print] testing xlinkurl:www.hydro.nl
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:21.077 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: www.hydro.nl
18:07:21.077 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:07:21.077 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"www.hydro.nl"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:21.078 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:21.078 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.455
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:21.534 status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:21.535 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:21.538 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:21.538 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.070
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:21.610 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:21.611 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.699
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:08:22.310 status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.713
Scenario Outline Check dataset record in ngr voor d24ccb35-e9d2-41bf-b231-43083fc0c76d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd24ccb35-e9d2-41bf-b231-43083fc0c76d' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.581
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd24ccb35-e9d2-41bf-b231-43083fc0c76d' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:23.594 [print] title:LCP emissies (Richtlijn Industriële emissies) 2016
* print title 0.000
18:07:23.594 [print] LCP emissies (Richtlijn Industriële emissies) 2016
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.006
* print nlinks 0.000
18:07:23.602 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "d24ccb35-e9d2-41bf-b231-43083fc0c76d" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.560
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:23.608 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:23.609 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.561
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"
}
> * print "testing xlinkurl: 0.001
18:07:24.173 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:24.174 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3
> Given url link 0.000
> When method HEAD 0.360
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:24.533 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3
18:07:24.533 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:07:24.535 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6941b1f2-7ee6-4a1d-9cba-9071e3ca6cb3"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:24.536 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:24.537 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.569
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:25.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:25.108 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.056
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
49.732
Scenario Outline Check dataset record in ngr voor e1e99000-ec47-4e9f-84a5-adad24fef0dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e1e99000-ec47-4e9f-84a5-adad24fef0dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e1e99000-ec47-4e9f-84a5-adad24fef0dc' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:24.704 [print] title:Natuurlijke alfa activiteitsconcentratie in lucht Nationaal Meetnet Radioactiviteit 2011
* print title 0.000
18:07:24.705 [print] Natuurlijke alfa activiteitsconcentratie in lucht Nationaal Meetnet Radioactiviteit 2011
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.003
18:07:24.713 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "e1e99000-ec47-4e9f-84a5-adad24fef0dc" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 24.605
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:07:24.719 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:24.720 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.539
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"
}
> * print "testing xlinkurl: 0.000
18:07:25.260 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:25.260 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f
> Given url link 0.000
> When method HEAD 0.359
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:25.619 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f
18:07:25.620 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:25.621 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#10fcd5a9-3804-48e3-bcbd-d816594dbb6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:25.622 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:25.623 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.609
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:26.235 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:26.235 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 23.084
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.900
Scenario Outline Check dataset record in ngr voor ad6caa40-89ab-47e3-85ab-3f8e32024a71
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ad6caa40-89ab-47e3-85ab-3f8e32024a71' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.523
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ad6caa40-89ab-47e3-85ab-3f8e32024a71' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:24.776 [print] title:Emissies naar lucht en water in 2011 vanuit de industrie
* print title 0.000
18:07:24.776 [print] Emissies naar lucht en water in 2011 vanuit de industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.001
18:07:24.782 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "ad6caa40-89ab-47e3-85ab-3f8e32024a71" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.184
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:24.788 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:07:24.790 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.556
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"
}
> * print "testing xlinkurl: 0.004
18:07:25.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:25.353 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:25.710 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65
18:07:25.710 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.003
18:07:25.710 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#6e6bf543-e1e3-468d-afae-e88618ad9a65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:25.714 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:25.715 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.562
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:26.279 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:26.279 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.689
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
33.641
Scenario Outline Check dataset record in ngr voor 247a1d15-0a67-40ce-85be-1403c08f15a8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '247a1d15-0a67-40ce-85be-1403c08f15a8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.525
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '247a1d15-0a67-40ce-85be-1403c08f15a8' 0.005
* def title = get response //citation/CI_Citation/title/CharacterString 0.002
* print 'title:' + title 0.001
18:07:25.719 [print] title:Nationale Parken (INSPIRE Geharmoniseerd)
* print title 0.000
18:07:25.719 [print] Nationale Parken (INSPIRE Geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.005
18:07:25.727 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "247a1d15-0a67-40ce-85be-1403c08f15a8" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 16.549
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1071, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:07:42.279 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1071, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.002
18:07:25.733 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:25.734 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.559
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8"
}
> * print "testing xlinkurl: 0.000
18:07:26.295 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:26.296 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/247a1d15-0a67-40ce-85be-1403c08f15a8
> Given url link 0.000
> When method HEAD 0.223
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:07:26.521 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:26.522 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.523
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:07:27.046 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:27.046 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.550
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:27.598 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:27.598 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 13.058
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:07:40.658 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:40.658 [print] testing xlinkurl:xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
18:07:40.659 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps, http call failed after 0 milliseconds for URL: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
18:07:40.659 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
18:07:40.659 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: xlink:href=https://inspire.ec.europa.eu/id/document/tg/ps
18:07:40.659 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:40.660 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.618
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1071, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:07:42.278 status code was: 404, expected: 200, response time: 1071, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.594
Scenario Outline Check dataset record in ngr voor 8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.002
18:07:27.493 [print] title:Omgevingsdosisequivalenttempo Nationaal Meetnet Radioactiviteit 2011
* print title 0.000
18:07:27.494 [print] Omgevingsdosisequivalenttempo Nationaal Meetnet Radioactiviteit 2011
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
18:07:27.499 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "8a4f5c3b-aced-48fd-afb5-f1f1d0ef21d6" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.534
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:27.506 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:27.506 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.522
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"
}
> * print "testing xlinkurl: 0.001
18:07:28.031 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:07:28.032 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd
> Given url link 0.000
> When method HEAD 0.358
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:28.390 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd
18:07:28.390 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:07:28.390 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#722e3937-3e53-4048-97ef-1ced2c77f7dd"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:28.392 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:28.392 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.549
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:28.943 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:28.943 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.092
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
16.141
Scenario Outline Check dataset record in ngr voor b3ec8793-7747-4da0-b6c3-aa384446a586
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b3ec8793-7747-4da0-b6c3-aa384446a586' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.507
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3ec8793-7747-4da0-b6c3-aa384446a586' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:28.677 [print] title:Gemeten Fijn stof concentraties in buitenlucht.
* print title 0.000
18:07:28.677 [print] Gemeten Fijn stof concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:28.679 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "b3ec8793-7747-4da0-b6c3-aa384446a586" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.816
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:28.686 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:28.686 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.588
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"
}
> * print "testing xlinkurl: 0.000
18:07:29.276 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.277 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa
> Given url link 0.000
> When method HEAD 0.359
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:29.636 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa
18:07:29.636 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:29.636 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3095f95-0ec7-46ff-ae14-ce2173e8fafa"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:29.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.637 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.524
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:30.163 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:30.163 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.057
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:30.223 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:30.224 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.042
Scenario Outline Check dataset record in ngr voor ed960299-a147-4c1a-bc57-41ff83a2264f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ed960299-a147-4c1a-bc57-41ff83a2264f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.364
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ed960299-a147-4c1a-bc57-41ff83a2264f' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.006
* print 'title:' + title 0.000
18:07:29.300 [print] title:Bodemkaart50000_versie2014
* print title 0.000
18:07:29.300 [print] Bodemkaart50000_versie2014
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.013
* print nlinks 0.004
18:07:29.320 [print] [
  "h",
  "t",
  "t",
  "p",
  ":",
  "/",
  "/",
  "s",
  "t",
  "a",
  "n",
  "d",
  "a",
  "r",
  "d",
  "s",
  ".",
  "i",
  "s",
  "o",
  ".",
  "o",
  "r",
  "g",
  "/",
  "i",
  "t",
  "t",
  "f",
  "/",
  "P",
  "u",
  "b",
  "l",
  "i",
  "c",
  "l",
  "y",
  "A",
  "v",
  "a",
  "i",
  "l",
  "a",
  "b",
  "l",
  "e",
  "S",
  "t",
  "a",
  "n",
  "d",
  "a",
  "r",
  "d",
  "s",
  "/",
  "I",
  "S",
  "O",
  "_",
  "1",
  "9",
  "1",
  "3",
  "9",
  "_",
  "S",
  "c",
  "h",
  "e",
  "m",
  "a",
  "s",
  "/",
  "r",
  "e",
  "s",
  "o",
  "u",
  "r",
  "c",
  "e",
  "s",
  "/",
  "u",
  "o",
  "m",
  "/",
  "g",
  "m",
  "x",
  "U",
  "o",
  "m",
  ".",
  "x",
  "m",
  "l",
  "#",
  "m"
]
* def id = "ed960299-a147-4c1a-bc57-41ff83a2264f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.386
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=h}, {link=t}, {link=t}, {link=p}, {link=:}, {link=/}, {link=/}, {link=s}, {link=t}, {link=a}, {link=n}, {link=d}, {link=a}, {link=r}, {link=d}, {link=s}, {link=.}, {link=i}, {link=s}, {link=o}, {link=.}, {link=o}, {link=r}, {link=g}, {link=/}, {link=i}, {link=t}, {link=t}, {link=f}, {link=/}, {link=P}, {link=u}, {link=b}, {link=l}, {link=i}, {link=c}, {link=l}, {link=y}, {link=A}, {link=v}, {link=a}, {link=i}, {link=l}, {link=a}, {link=b}, {link=l}, {link=e}, {link=S}, {link=t}, {link=a}, {link=n}, {link=d}, {link=a}, {link=r}, {link=d}, {link=s}, {link=/}, {link=I}, {link=S}, {link=O}, {link=_}, {link=1}, {link=9}, {link=1}, {link=3}, {link=9}, {link=_}, {link=S}, {link=c}, {link=h}, {link=e}, {link=m}, {link=a}, {link=s}, {link=/}, {link=r}, {link=e}, {link=s}, {link=o}, {link=u}, {link=r}, {link=c}, {link=e}, {link=s}, {link=/}, {link=u}, {link=o}, {link=m}, {link=/}, {link=g}, {link=m}, {link=x}, {link=U}, {link=o}, {link=m}, {link=.}, {link=x}, {link=m}, {link=l}, {link=#}, {link=m}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"y"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"A"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"I"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"O"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"U"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"#"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.708 feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:07:29.329 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.329 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.330 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:07:29.330 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:07:29.330 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.331 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.331 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.332 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:07:29.332 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:07:29.332 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.333 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.333 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.334 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:07:29.334 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
18:07:29.335 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.336 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.336 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.337 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
18:07:29.337 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.002
18:07:29.338 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.341 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.341 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:07:29.342 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:07:29.342 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:07:29.343 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.344 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.345 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.345 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:07:29.346 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.347 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.347 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.348 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.348 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:07:29.349 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.350 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.350 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.351 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.351 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:07:29.352 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.353 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.353 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.354 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:07:29.354 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:07:29.355 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.356 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.356 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.357 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.357 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:07:29.358 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.359 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.359 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.360 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:07:29.360 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:07:29.361 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.362 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.362 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.363 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:07:29.363 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.001
18:07:29.370 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.372 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.372 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.373 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.373 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:07:29.374 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.375 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.375 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.376 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:07:29.376 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:07:29.377 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.378 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.378 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.379 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:07:29.379 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
18:07:29.380 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.383 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.385 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.390 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:07:29.390 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.392 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.392 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.393 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:07:29.393 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.006
18:07:29.394 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.400 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.401 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.401 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:07:29.401 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
18:07:29.401 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.403 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.403 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.404 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.404 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.002
18:07:29.404 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.407 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
18:07:29.408 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.409 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:07:29.409 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.003
18:07:29.409 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.413 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.413 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.414 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:07:29.415 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:07:29.415 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.416 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.417 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.417 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:07:29.418 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:07:29.418 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.419 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.420 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.420 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:07:29.421 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
18:07:29.421 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.422 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.422 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.423 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:07:29.423 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:07:29.424 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.425 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.425 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.426 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.426 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
18:07:29.427 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.428 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.428 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.429 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:07:29.430 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:07:29.431 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.432 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.432 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.433 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:07:29.433 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:07:29.433 feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.434 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.435 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.435 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:07:29.436 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
18:07:29.437 feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.437 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.438 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.438 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
18:07:29.439 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:07:29.439 feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.440 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.441 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.441 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.442 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "P"
}
> * print "testing xlinkurl: 0.000
18:07:29.443 feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.444 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.444 [print] testing xlinkurl:P
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.445 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: P
18:07:29.445 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
18:07:29.446 feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.447 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.447 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.448 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:07:29.449 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[32] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "b"
}
> * print "testing xlinkurl: 0.000
18:07:29.449 feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.450 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.451 [print] testing xlinkurl:b
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.452 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: b
18:07:29.452 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[33] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:07:29.453 feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.454 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.455 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.455 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:07:29.455 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[34] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
18:07:29.456 feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.457 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.457 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.458 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:07:29.458 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[35] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
18:07:29.459 feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.460 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.460 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.461 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
18:07:29.462 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[36] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:07:29.463 feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.464 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.464 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.465 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:07:29.465 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[37] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "y"
}
> * print "testing xlinkurl: 0.000
18:07:29.466 feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.467 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.467 [print] testing xlinkurl:y
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.468 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: y
18:07:29.469 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[38] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "A"
}
> * print "testing xlinkurl: 0.000
18:07:29.470 feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"y"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.470 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.471 [print] testing xlinkurl:A
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.471 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: A
18:07:29.473 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[39] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "v"
}
> * print "testing xlinkurl: 0.000
18:07:29.473 feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"A"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.474 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.475 [print] testing xlinkurl:v
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.475 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: v
18:07:29.476 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[40] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:07:29.477 feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.478 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.478 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.479 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.479 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[41] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
18:07:29.480 feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.481 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.481 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.482 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:07:29.483 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[42] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:07:29.484 feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.484 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.485 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.486 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:07:29.486 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[43] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:07:29.487 feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.488 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.488 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.489 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.489 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[44] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "b"
}
> * print "testing xlinkurl: 0.000
18:07:29.490 feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.491 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.492 [print] testing xlinkurl:b
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.493 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: b
18:07:29.494 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[45] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:07:29.494 feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"b"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.495 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.496 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.497 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:07:29.497 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[46] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:07:29.498 feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.499 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.499 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.500 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:07:29.500 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[47] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
18:07:29.501 feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.502 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.503 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.504 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
18:07:29.504 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[48] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:07:29.505 feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.506 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.506 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.507 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:07:29.507 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[49] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:07:29.508 feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.509 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.510 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.511 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.511 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[50] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:07:29.512 feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.513 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.514 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:07:29.514 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[51] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:07:29.515 feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.516 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.516 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.517 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:07:29.517 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[52] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:07:29.518 feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.519 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.520 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.521 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.521 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[53] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
18:07:29.522 feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.524 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.524 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.525 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:07:29.526 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[54] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:07:29.527 feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.528 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.529 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.530 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:07:29.530 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[55] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:07:29.531 feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.532 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.532 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.533 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.533 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[56] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:07:29.534 feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.535 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.535 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.536 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.537 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[57] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "I"
}
> * print "testing xlinkurl: 0.000
18:07:29.538 feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.539 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.540 [print] testing xlinkurl:I
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.540 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: I
18:07:29.541 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[58] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.001
18:07:29.541 feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"I"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.543 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.543 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.544 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
18:07:29.544 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[59] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "O"
}
> * print "testing xlinkurl: 0.001
18:07:29.546 feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.548 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.549 [print] testing xlinkurl:O
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.550 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: O
18:07:29.552 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[60] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "_"
}
> * print "testing xlinkurl: 0.000
18:07:29.553 feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"O"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.554 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.554 [print] testing xlinkurl:_
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.556 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: _
18:07:29.556 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[61] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.000
18:07:29.556 feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.557 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.557 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.558 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
18:07:29.558 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[62] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "9"
}
> * print "testing xlinkurl: 0.000
18:07:29.558 feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.559 [print] testing xlinkurl:9
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.559 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 9
18:07:29.559 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[63] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.000
18:07:29.560 feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.560 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.560 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.561 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
18:07:29.562 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[64] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "3"
}
> * print "testing xlinkurl: 0.000
18:07:29.562 feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.564 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.564 [print] testing xlinkurl:3
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.566 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 3
18:07:29.566 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[65] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "9"
}
> * print "testing xlinkurl: 0.000
18:07:29.567 feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.569 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.569 [print] testing xlinkurl:9
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.572 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 9
18:07:29.572 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[66] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "_"
}
> * print "testing xlinkurl: 0.000
18:07:29.573 feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"9"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.576 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.576 [print] testing xlinkurl:_
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.576 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: _
18:07:29.577 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[67] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
18:07:29.577 feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"_"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.577 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.578 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.578 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
18:07:29.578 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[68] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.001
18:07:29.579 feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.581 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.581 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.581 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
18:07:29.581 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[69] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:07:29.582 feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.582 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.583 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.584 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:07:29.584 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[70] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:07:29.584 feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.585 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.585 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.586 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:07:29.586 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[71] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
18:07:29.586 feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.587 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.587 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.587 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:07:29.587 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[72] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:07:29.588 feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.589 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.589 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.589 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:07:29.589 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[73] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:07:29.589 feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.591 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.591 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.591 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.591 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[74] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.008
18:07:29.591 feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.600 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.600 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.601 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.601 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[75] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:07:29.601 feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.602 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.602 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.603 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:07:29.603 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[76] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:07:29.603 feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.603 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.604 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.605 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:07:29.605 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[77] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:07:29.606 feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.606 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.606 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.607 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.607 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[78] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:07:29.609 feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.609 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.610 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.610 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:07:29.610 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[79] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
18:07:29.610 feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.611 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.611 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.611 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:07:29.611 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[80] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:07:29.611 feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.612 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.612 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.612 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:07:29.612 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[81] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.005
18:07:29.613 feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.618 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.618 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.620 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
18:07:29.620 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[82] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.001
18:07:29.620 feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.621 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.622 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.622 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:07:29.622 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[83] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
18:07:29.622 feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.625 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.625 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.626 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:07:29.626 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[84] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
18:07:29.626 feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.627 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.628 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.629 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.629 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[85] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.001
18:07:29.629 feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.631 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.631 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.632 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:07:29.632 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[86] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.002
18:07:29.632 feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.635 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.635 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.639 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:07:29.639 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[87] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.001
18:07:29.639 feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.640 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.640 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.641 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:07:29.642 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[88] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
18:07:29.642 feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.645 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.645 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.645 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:07:29.647 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[89] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.001
18:07:29.647 feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.655 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
18:07:29.656 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.656 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:07:29.656 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[90] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
18:07:29.657 feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.658 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.658 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.660 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:07:29.660 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[91] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.001
18:07:29.661 feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.663 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.663 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.664 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
18:07:29.664 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[92] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "U"
}
> * print "testing xlinkurl: 0.001
18:07:29.664 feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.668 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.670 [print] testing xlinkurl:U
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.670 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: U
18:07:29.670 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[93] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.005
18:07:29.671 feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"U"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.684 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.685 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.685 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:07:29.685 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[94] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
18:07:29.685 feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.686 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.686 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.686 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:07:29.686 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[95] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:07:29.687 feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.687 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.688 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.688 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:07:29.688 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[96] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.001
18:07:29.689 feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.691 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.691 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.693 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
18:07:29.693 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[97] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.002
18:07:29.694 feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.696 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.697 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.700 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:07:29.700 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[98] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:07:29.700 feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.701 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.701 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.702 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:07:29.702 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[99] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "#"
}
> * print "testing xlinkurl: 0.000
18:07:29.702 feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.703 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.703 [print] testing xlinkurl:#
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.704 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: #
18:07:29.704 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[100] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.002
18:07:29.704 feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"#"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.707 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:29.707 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:29.708 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:07:29.708 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.183
Scenario Outline Check dataset record in ngr voor 8f45b8ef-0ce8-463a-9059-5efdcecb785c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8f45b8ef-0ce8-463a-9059-5efdcecb785c' 0.011
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.524
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8f45b8ef-0ce8-463a-9059-5efdcecb785c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:30.247 [print] title:Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd)
* print title 0.000
18:07:30.247 [print] Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
18:07:30.250 [print] [
  "http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "8f45b8ef-0ce8-463a-9059-5efdcecb785c" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.821
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"
}
> * print "testing xlinkurl: 0.001
18:07:30.259 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:07:30.260 [print] testing xlinkurl:http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586
> Given url link 0.000
> When method HEAD 0.007
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:07:30.269 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 7 milliseconds for URL: http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586
18:07:30.269 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:07:30.270 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/df1a98c0-58ba-48ff-8825-b4fb6322c586"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:07:30.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:30.271 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 1.042
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:31.315 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:31.315 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:31.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:31.384 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.692
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
10.207
Scenario Outline Check dataset record in ngr voor 6c06740d-058f-4a12-bb3f-bf68efd03d09
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6c06740d-058f-4a12-bb3f-bf68efd03d09' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c06740d-058f-4a12-bb3f-bf68efd03d09' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:31.686 [print] title:Vervoersnetwerken - Kabelbanen (INSPIRE geharmoniseerd)
* print title 0.000
18:07:31.686 [print] Vervoersnetwerken - Kabelbanen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:07:31.689 [print] [
  "http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "6c06740d-058f-4a12-bb3f-bf68efd03d09" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 4.843
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"
}
> * print "testing xlinkurl: 0.000
18:07:31.693 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:31.694 [print] testing xlinkurl:http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:31.695 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a
18:07:31.695 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:07:31.696 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ed4caa3b-a49e-4a9a-8206-50a3cf451b9a"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:31.697 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:31.697 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:32.386 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:32.387 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.072
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:32.461 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:32.461 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.071
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.443
Scenario Outline Check dataset record in ngr voor af0c582f-9e6b-46e6-865a-fc3a2d5289b9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'af0c582f-9e6b-46e6-865a-fc3a2d5289b9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'af0c582f-9e6b-46e6-865a-fc3a2d5289b9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:32.594 [print] title:Bodemgebruik
* print title 0.000
18:07:32.595 [print] Bodemgebruik
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.004
* print nlinks 0.002
18:07:32.603 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "https://www.iana.org/assignments/media-types/application/gml+xml"
]
* def id = "af0c582f-9e6b-46e6-865a-fc3a2d5289b9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.961
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"
}
> * print "testing xlinkurl: 0.002
18:07:32.608 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:32.609 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:32.609 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78
18:07:32.610 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc"
}
> * print "testing xlinkurl: 0.001
18:07:32.610 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a78"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:32.612 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:32.613 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc
> Given url link 0.000
> When method HEAD 0.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:33.298 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:33.299 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.065
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:33.365 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:33.365 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.685
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:07:34.053 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:34.053 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.284
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:07:34.340 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:34.340 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.224
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
19.751
Scenario Outline Check dataset record in ngr voor 9d9f1738-aced-47c9-aaa0-c62474a2dcfb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9d9f1738-aced-47c9-aaa0-c62474a2dcfb' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9d9f1738-aced-47c9-aaa0-c62474a2dcfb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:33.603 [print] title:Zeegebieden
* print title 0.000
18:07:33.603 [print] Zeegebieden
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:33.605 [print] [
  "http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "https://www.iana.org/assignments/media-types/application/gml+xml"
]
* def id = "9d9f1738-aced-47c9-aaa0-c62474a2dcfb" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 9.613
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"
}
> * print "testing xlinkurl: 0.000
18:07:33.610 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:33.610 [print] testing xlinkurl:http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:33.611 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e
18:07:33.611 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr"
}
> * print "testing xlinkurl: 0.001
18:07:33.611 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7c22107ea-5e31-4bbc-8e24-d15fe230062e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:33.613 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:33.614 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr
> Given url link 0.000
> When method HEAD 0.698
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:34.314 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:34.315 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.001
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:34.378 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:34.378 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 8.376
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:07:42.757 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:42.757 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.293
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:07:43.052 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.052 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
14.855
Scenario Outline Check dataset record in ngr voor 31de946d-85d4-4c93-bb97-e25f4ef1401a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '31de946d-85d4-4c93-bb97-e25f4ef1401a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.681
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '31de946d-85d4-4c93-bb97-e25f4ef1401a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:35.252 [print] title:Vervoersnetwerken - Luchttransport (INSPIRE geharmoniseerd)
* print title 0.000
18:07:35.252 [print] Vervoersnetwerken - Luchttransport (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:35.254 [print] [
  "http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "31de946d-85d4-4c93-bb97-e25f4ef1401a" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.085
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"
}
> * print "testing xlinkurl: 0.000
18:07:35.259 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:35.259 [print] testing xlinkurl:http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:35.260 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de
18:07:35.260 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:07:35.262 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3b7bb05b-2d2e-4329-9a72-0eac19e315de"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:35.263 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:35.264 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.686
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:35.951 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:35.952 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.059
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:36.012 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:36.013 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.327
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
17.895
Scenario Outline Check dataset record in ngr voor 4b282988-cb91-4bbc-b147-f653014917cb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4b282988-cb91-4bbc-b147-f653014917cb' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.547
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4b282988-cb91-4bbc-b147-f653014917cb' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:35.590 [print] title:Hydrografie
* print title 0.000
18:07:35.590 [print] Hydrografie
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.004
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
18:07:35.599 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "https://www.iana.org/assignments/media-types/application/gml+xml"
]
* def id = "4b282988-cb91-4bbc-b147-f653014917cb" 0.006
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 8.666
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"
}
> * print "testing xlinkurl: 0.003
18:07:35.611 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:35.612 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:35.613 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80
18:07:35.613 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy"
}
> * print "testing xlinkurl: 0.002
18:07:35.614 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a80"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:35.617 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:35.617 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy
> Given url link 0.000
> When method HEAD 0.752
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:36.371 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:36.372 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.065
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:36.440 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:36.440 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.361
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:07:43.803 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.803 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.300
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:07:44.104 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.104 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
10.706
Scenario Outline Check dataset record in ngr voor 1c3afc74-cc34-44b7-938a-963e2350795a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1c3afc74-cc34-44b7-938a-963e2350795a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.605
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1c3afc74-cc34-44b7-938a-963e2350795a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:37.108 [print] title:Hydrografie - Physical Waters (INSPIRE geharmoniseerd)
* print title 0.000
18:07:37.108 [print] Hydrografie - Physical Waters (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:37.111 [print] [
  "http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "1c3afc74-cc34-44b7-938a-963e2350795a" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 5.048
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"
}
> * print "testing xlinkurl: 0.000
18:07:37.116 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.116 [print] testing xlinkurl:http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:37.118 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c
18:07:37.118 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy"
}
> * print "testing xlinkurl: 0.000
18:07:37.119 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/70a0f618-9d4f-4be9-9d9d-11106ff6971c"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:37.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.120 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy
> Given url link 0.000
> When method HEAD 0.705
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:37.827 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.828 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.068
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:37.898 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.899 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.261
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
44.407
Scenario Outline Check dataset record in ngr voor 3a7dd0a6-d130-4c4c-b0ba-24365cf036e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3a7dd0a6-d130-4c4c-b0ba-24365cf036e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.613
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3a7dd0a6-d130-4c4c-b0ba-24365cf036e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:37.150 [print] title:Vervoersnetwerken - Spoorwegen (INSPIRE geharmoniseerd)
* print title 0.000
18:07:37.151 [print] Vervoersnetwerken - Spoorwegen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:37.153 [print] [
  "http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "3a7dd0a6-d130-4c4c-b0ba-24365cf036e2" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 21.896
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"
}
> * print "testing xlinkurl: 0.000
18:07:37.156 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.157 [print] testing xlinkurl:http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:37.158 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526
18:07:37.158 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:07:37.159 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/cb4edbd2-2dca-4d44-92bb-b2202048b526"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:37.160 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.160 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:37.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.853 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.082
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:37.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:37.938 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 21.111
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:8.237
Scenario Outline Check dataset record in ngr voor 24de356e-ec4d-4a18-9903-6401d222b77c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '24de356e-ec4d-4a18-9903-6401d222b77c' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.540
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '24de356e-ec4d-4a18-9903-6401d222b77c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:42.707 [print] title:Vergunningen Mijnbouwwet onder INSPIRE
* print title 0.000
18:07:42.708 [print] Vergunningen Mijnbouwwet onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:07:42.712 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "24de356e-ec4d-4a18-9903-6401d222b77c" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 33.844
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 372, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"
}
> * print "testing xlinkurl: 0.002
18:07:42.720 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:42.720 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024
> Given url link 0.000
> When method HEAD 0.283
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
18:07:43.003 status code was: 404, expected: 200, response time: 282, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.005
18:07:43.004 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 282, url: https://nationaalgeoregister.nl/geonetwork/srv/resources8bdf76b6-c9c9-4011-a7bc-022ae14a4024, response: 
18:07:43.009 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.010 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.372
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 372, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:07:43.383 status code was: 404, expected: 200, response time: 372, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
18:07:43.383 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 372, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:07:43.384 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.384 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.693
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:44.078 status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.001
18:07:44.078 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:44.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.081 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.426
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:44.509 status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:44.509 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 426, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:44.510 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.510 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 32.049
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
57.475
Scenario Outline Check dataset record in ngr voor b3f66964-a8c1-456f-9799-9cafca2cb7b1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b3f66964-a8c1-456f-9799-9cafca2cb7b1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.571
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b3f66964-a8c1-456f-9799-9cafca2cb7b1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:42.854 [print] title:Monitoring stations (Nitraatrichtlijn) ondiepe filters
* print title 0.000
18:07:42.855 [print] Monitoring stations (Nitraatrichtlijn) ondiepe filters
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:07:42.857 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "b3f66964-a8c1-456f-9799-9cafca2cb7b1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 28.450
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:42.861 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:42.862 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.534
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"
}
> * print "testing xlinkurl: 0.000
18:07:43.398 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.398 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:43.755 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b
18:07:43.755 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.002
18:07:43.757 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#7247293d-2113-44d8-b335-8167b2ec4d1b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:43.761 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.761 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.542
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:44.306 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.306 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 27.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
40.434
Scenario Outline Check dataset record in ngr voor 5800f3b0-2ea2-4231-8165-216a7b26867f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5800f3b0-2ea2-4231-8165-216a7b26867f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.522
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5800f3b0-2ea2-4231-8165-216a7b26867f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:42.868 [print] title:Gemeten Koolstofmonoxide concentraties in buitenlucht.
* print title 0.000
18:07:42.869 [print] Gemeten Koolstofmonoxide concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:07:42.872 [print] [
  "https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "5800f3b0-2ea2-4231-8165-216a7b26867f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 19.953
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"
}
> * print "testing xlinkurl: 0.000
18:07:42.876 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:42.877 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f
> Given url link 0.000
> When method HEAD 0.358
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:43.235 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f
18:07:43.235 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:43.235 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a3b9f437-f571-4a00-b3c3-58e4354c244f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:07:43.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.236 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.530
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:43.768 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:07:43.770 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.059
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:43.831 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.832 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 18.994
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.932
Scenario Outline Check dataset record in ngr voor 844404a2-9cd0-452e-b29a-74588777485a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '844404a2-9cd0-452e-b29a-74588777485a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.522
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '844404a2-9cd0-452e-b29a-74588777485a' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:43.749 [print] title:Geluidkaart hoofdspoornet 2011 (Lden)
* print title 0.000
18:07:43.749 [print] Geluidkaart hoofdspoornet 2011 (Lden)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:07:43.754 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "844404a2-9cd0-452e-b29a-74588777485a" 0.010
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.199
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 432, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"
}
> * print "testing xlinkurl: 0.001
18:07:43.772 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:43.773 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a
> Given url link 0.000
> When method HEAD 0.432
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 432, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
18:07:44.205 status code was: 500, expected: 200, response time: 432, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:44.207 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 432, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records844404a2-9cd0-452e-b29a-74588777485a, response: 
18:07:44.208 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.209 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:44.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.272 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.165
Scenario Outline Check dataset record in ngr voor 81ff84ec-42a4-4481-840b-12713bbb5d38
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '81ff84ec-42a4-4481-840b-12713bbb5d38' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.534
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '81ff84ec-42a4-4481-840b-12713bbb5d38' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:44.811 [print] title:Geografische Namen
* print title 0.000
18:07:44.812 [print] Geografische Namen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:07:44.815 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "https://www.iana.org/assignments/media-types/application/gml+xml"
]
* def id = "81ff84ec-42a4-4481-840b-12713bbb5d38" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.313
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"
}
> * print "testing xlinkurl: 0.000
18:07:44.823 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.824 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79
> Given url link 0.000
> When method HEAD 0.034
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:07:44.858 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 34 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79
18:07:44.858 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn"
}
> * print "testing xlinkurl: 0.002
18:07:44.858 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a79"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:07:44.861 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:44.861 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn
> Given url link 0.000
> When method HEAD 0.677
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:45.540 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:45.540 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:45.620 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:45.620 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.053
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:07:51.675 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:51.675 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.286
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:07:51.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:51.964 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.783
Scenario Outline Check dataset record in ngr voor 380aa01e-dce7-11e3-9f07-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '380aa01e-dce7-11e3-9f07-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.527
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '380aa01e-dce7-11e3-9f07-901b0e19e163' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:45.497 [print] title:Netwerk van KNMI waarneemstations
* print title 0.000
18:07:45.497 [print] Netwerk van KNMI waarneemstations
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:07:45.501 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "380aa01e-dce7-11e3-9f07-901b0e19e163" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.625
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/EPSG:4326}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326"
}
> * print "testing xlinkurl: 0.000
18:07:45.505 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:45.505 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/EPSG:4326
> Given url link 0.000
> When method HEAD 0.355
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"
}
> * print "testing xlinkurl: 0.000
18:07:45.862 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:45.862 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb
> Given url link 0.000
> When method HEAD 0.327
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
18:07:46.190 status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:46.191 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6c6be9c5-b09b-4dcf-a5fd-f149cbaca6fb, response: 
18:07:46.193 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:46.193 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.110
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:07:46.305 status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:46.305 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 110, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:07:46.307 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:46.308 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.725
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:07:47.035 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:47.035 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 1.092
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
37.621
Scenario Outline Check dataset record in ngr voor c3c004ad-5387-4b00-a225-9afbcaa5d31b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c3c004ad-5387-4b00-a225-9afbcaa5d31b' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c3c004ad-5387-4b00-a225-9afbcaa5d31b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:46.974 [print] title:Geluidkaart hoofdspoornet 2016 (Lden)
* print title 0.000
18:07:46.974 [print] Geluidkaart hoofdspoornet 2016 (Lden)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.002
* print nlinks 0.000
18:07:46.977 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRailwaysNoiseExposureDelineationDEN-dir-2002-49",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "c3c004ad-5387-4b00-a225-9afbcaa5d31b" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 18.533
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRailwaysNoiseExposureDelineationDEN-dir-2002-49}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"
}
> * print "testing xlinkurl: 0.000
18:07:46.982 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:46.983 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
18:07:47.294 status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRailwaysNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:07:47.295 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc3c004ad-5387-4b00-a225-9afbcaa5d31b, response: 
18:07:47.296 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:47.296 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRailwaysNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 12.109
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:59.407 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.407 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.070
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:59.479 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.480 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.032
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
9.601
Scenario Outline Check dataset record in ngr voor a7fb2234-f7b4-4a03-b282-f10947f42fb1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a7fb2234-f7b4-4a03-b282-f10947f42fb1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.608
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a7fb2234-f7b4-4a03-b282-f10947f42fb1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:48.741 [print] title:Kaart van de bodemopbouw in Nederland 1:50.000 onder INSPIRE
* print title 0.000
18:07:48.742 [print] Kaart van de bodemopbouw in Nederland 1:50.000 onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:48.744 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "a7fb2234-f7b4-4a03-b282-f10947f42fb1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 4.496
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/16}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"
}
> * print "testing xlinkurl: 0.000
18:07:48.748 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:48.748 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
18:07:49.030 status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"
}
> * print "testing xlinkurl: 0.000
18:07:49.032 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesbbe3c19d-12b0-4912-a6f4-46eb189e85ac, response: 
18:07:49.033 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:49.033 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/16
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
18:07:49.234 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
18:07:49.234 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
18:07:49.235 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:49.235 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.593
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:49.829 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:07:49.830 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:49.831 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:49.831 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.317
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:50.149 status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:07:50.149 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 317, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:50.151 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:50.151 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.089
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.405
Scenario Outline Check dataset record in ngr voor c7662717-9e43-4367-a344-723d73abbb3e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c7662717-9e43-4367-a344-723d73abbb3e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.490
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7662717-9e43-4367-a344-723d73abbb3e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:49.814 [print] title:-Gegevens boormonsterprofiel onder PDOK
* print title 0.000
18:07:49.814 [print] -Gegevens boormonsterprofiel onder PDOK
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:49.816 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "c7662717-9e43-4367-a344-723d73abbb3e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.455
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"
}
> * print "testing xlinkurl: 0.000
18:07:49.821 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:49.821 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
18:07:50.103 status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:50.104 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7662717-9e43-4367-a344-723d73abbb3e, response: 
18:07:50.105 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:50.106 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.062
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:50.170 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:50.170 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.102
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
6.717
Scenario Outline Check dataset record in ngr voor 7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.519
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:52.656 [print] title:Luchtfoto 2018 25cm CIR open data
* print title 0.000
18:07:52.656 [print] Luchtfoto 2018 25cm CIR open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:52.659 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b021",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "7f5d7945-8fa8-4d36-be4c-2fdb3c7d613b" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.097
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b021}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:55.759 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"
}
> * print "testing xlinkurl: 0.000
18:07:52.665 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:52.665 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b021
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:52.666 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b021
18:07:52.666 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:07:52.666 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b021"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:07:52.667 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:52.667 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:07:53.348 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:53.348 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.092
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:53.442 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:53.442 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:07:55.448 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:55.448 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.304
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:07:55.755 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:55.755 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:55.756 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:07:55.756 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:07:55.756 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:55.757 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:55.757 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:55.757 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:07:55.757 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:07:55.757 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:55.758 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:55.758 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:07:55.759 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:07:55.759 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
34.820
Scenario Outline Check dataset record in ngr voor 733559a5-201d-40e5-ad43-d1c7bae84d9f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '733559a5-201d-40e5-ad43-d1c7bae84d9f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.508
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '733559a5-201d-40e5-ad43-d1c7bae84d9f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:56.272 [print] title:Gemeten Stikstofdioxide concentraties in buitenlucht.
* print title 0.000
18:07:56.272 [print] Gemeten Stikstofdioxide concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:07:56.275 [print] [
  "https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "733559a5-201d-40e5-ad43-d1c7bae84d9f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.153
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 359, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"
}
> * print "testing xlinkurl: 0.000
18:07:56.280 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:56.280 [print] testing xlinkurl:https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6
> Given url link 0.000
> When method HEAD 0.359
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 359, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
18:07:56.640 status code was: 404, expected: 200, response time: 359, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.003
18:07:56.641 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 359, url: https://data.rivm.nl/inspire?id#505e9f1e-84bc-4856-9771-4295db998bb6, response: 
18:07:56.644 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:56.645 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.501
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:07:57.149 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:57.150 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:07:57.229 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:57.229 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 16.200
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.342
Scenario Outline Check dataset record in ngr voor 80630ee7-3a15-4ea0-bdc0-a8aebfa2f204
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '80630ee7-3a15-4ea0-bdc0-a8aebfa2f204' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '80630ee7-3a15-4ea0-bdc0-a8aebfa2f204' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:57.800 [print] title:Oppervlaktegeologie, Geologische kaart onder INSPIRE
* print title 0.000
18:07:57.800 [print] Oppervlaktegeologie, Geologische kaart onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:57.802 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "80630ee7-3a15-4ea0-bdc0-a8aebfa2f204" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.410
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"
}
> * print "testing xlinkurl: 0.001
18:07:57.807 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:57.807 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9
> Given url link 0.000
> When method HEAD 0.280
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
18:07:58.088 status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
18:07:58.088 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://nationaalgeoregister.nl/geonetwork/srv/resources66495385-8f7b-4661-85a7-11a2bbcbb6b9, response: 
18:07:58.089 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:58.090 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.203
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
18:07:58.294 status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.001
18:07:58.295 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
18:07:58.297 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:58.298 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.592
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:58.891 status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.001
18:07:58.891 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 399, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:07:58.894 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:58.894 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:59.205 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.002
18:07:59.205 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:07:59.207 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.208 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.005
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
57.766
Scenario Outline Check dataset record in ngr voor 8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.533
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:59.370 [print] title:Emissies naar het riool in 2011 vanuit de industrie
* print title 0.000
18:07:59.370 [print] Emissies naar het riool in 2011 vanuit de industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:07:59.372 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "8b0b02a0-1e1b-4cda-bcfe-6fa0f738e38f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 28.614
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:07:59.377 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.378 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.518
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"
}
> * print "testing xlinkurl: 0.000
18:07:59.897 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.897 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313
> Given url link 0.000
> When method HEAD 0.363
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:08:00.260 javax.net.ssl.SSLException: Connection reset, http call failed after 362 milliseconds for URL: https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313
18:08:00.260 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:08:00.261 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#e6ddc53d-04c4-435d-bedd-a5ace2dc0313"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:08:00.263 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:00.263 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.573
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.003
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:08:00.842 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:00.843 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 27.144
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:33.326
Scenario Outline Check dataset record in ngr voor 03671a9e-6aaf-464d-be99-9aad25cef9e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '03671a9e-6aaf-464d-be99-9aad25cef9e3' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.527
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '03671a9e-6aaf-464d-be99-9aad25cef9e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:07:59.583 [print] title:Habitatrichtlijn verspreidingsgebied van habitattypen
* print title 0.000
18:07:59.583 [print] Habitatrichtlijn verspreidingsgebied van habitattypen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:07:59.587 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesRange-dir-1992-43",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "03671a9e-6aaf-464d-be99-9aad25cef9e3" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 46.396
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesRange-dir-1992-43}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"
}
> * print "testing xlinkurl: 0.000
18:07:59.591 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.592 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
18:07:59.873 status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:07:59.874 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 280, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources03671a9e-6aaf-464d-be99-9aad25cef9e3, response: 
18:07:59.875 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:07:59.875 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.536
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesRange-dir-1992-43"
}
> * print "testing xlinkurl: 0.000
18:08:00.413 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:00.413 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/HabitatTypesRange-dir-1992-43
> Given url link 0.000
> When method HEAD 5.489
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:08:05.906 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:05.906 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 40.078
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
44.560
Scenario Outline Check dataset record in ngr voor 29d5310f-dd0d-45ba-abad-b4ffc6b8785f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '29d5310f-dd0d-45ba-abad-b4ffc6b8785f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29d5310f-dd0d-45ba-abad-b4ffc6b8785f' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:08:03.346 [print] title:TOP10NL
* print title 0.000
18:08:03.346 [print] TOP10NL
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:08:03.349 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b201",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "",
  "",
  "",
  ""
]
* def id = "29d5310f-dd0d-45ba-abad-b4ffc6b8785f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 22.023
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b201}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.375 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"
}
> * print "testing xlinkurl: 0.000
18:08:03.354 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:03.354 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b201
> Given url link 0.000
> When method HEAD 0.045
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:08:03.400 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 45 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b201
18:08:03.400 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc"
}
> * print "testing xlinkurl: 0.000
18:08:03.400 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b201"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:08:03.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:03.401 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/lc
> Given url link 0.000
> When method HEAD 0.789
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy"
}
> * print "testing xlinkurl: 0.000
18:08:04.192 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:04.193 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu"
}
> * print "testing xlinkurl: 0.000
18:08:04.879 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:04.879 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu
> Given url link 0.000
> When method HEAD 0.681
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn"
}
> * print "testing xlinkurl: 0.000
18:08:05.563 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:05.563 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr"
}
> * print "testing xlinkurl: 0.000
18:08:06.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.245 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:08:06.933 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.934 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.661
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:07.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:07.597 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:07.654 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:07.654 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 17.197
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:08:24.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:24.853 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.332
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:25.187 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:25.187 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.187 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:25.187 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:08:25.187 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:25.188 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.174
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:25.364 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:25.364 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.364 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:25.364 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:25.365 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.365 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:25.365 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.365 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:25.365 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:25.365 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.366 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:25.366 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.366 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:25.366 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:25.366 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.367 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.006
18:08:25.373 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:25.374 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:25.374 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
36.963
Scenario Outline Check dataset record in ngr voor 32a21114-8694-40ce-ab76-9dcd885c7861
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '32a21114-8694-40ce-ab76-9dcd885c7861' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.497
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '32a21114-8694-40ce-ab76-9dcd885c7861' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:05.716 [print] title:Kwaliteit van drinkwater in Nederland (2012)
* print title 0.000
18:08:05.716 [print] Kwaliteit van drinkwater in Nederland (2012)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:08:05.718 [print] [
  "https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DrinkingWaterAbstractionPoints-dir-1998-83",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "32a21114-8694-40ce-ab76-9dcd885c7861" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 18.231
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DrinkingWaterAbstractionPoints-dir-1998-83}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"
}
> * print "testing xlinkurl: 0.000
18:08:05.722 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:05.722 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5
> Given url link 0.000
> When method HEAD 0.358
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:08:06.081 javax.net.ssl.SSLException: Connection reset, http call failed after 358 milliseconds for URL: https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5
18:08:06.081 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:08:06.081 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#a98a6cdb-61cd-4107-b775-2334e6772ed5"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:08:06.082 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.083 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.497
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DrinkingWaterAbstractionPoints-dir-1998-83"
}
> * print "testing xlinkurl: 0.000
18:08:06.582 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.582 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DrinkingWaterAbstractionPoints-dir-1998-83
> Given url link 0.000
> When method HEAD 6.020
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:12.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.604 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.346
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
9.423
Scenario Outline Check dataset record in ngr voor 50a2c5e6-c8e7-425d-854e-26f578196bc9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '50a2c5e6-c8e7-425d-854e-26f578196bc9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '50a2c5e6-c8e7-425d-854e-26f578196bc9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:06.029 [print] title:Afgevoerde hoeveelheid afval in 2011 vanuit de industrie
* print title 0.000
18:08:06.030 [print] Afgevoerde hoeveelheid afval in 2011 vanuit de industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:08:06.033 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "50a2c5e6-c8e7-425d-854e-26f578196bc9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 4.453
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:08:06.037 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.037 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.516
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"
}
> * print "testing xlinkurl: 0.000
18:08:06.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.556 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:08:06.911 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65
18:08:06.912 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:08:06.913 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#90bab79d-5f92-4aaa-8edc-99195438ef65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:08:06.916 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:06.916 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.539
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:07.457 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:07.457 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.030
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.363
Scenario Outline Check dataset record in ngr voor fe45c540-e37d-11e4-b571-0800200c9a66
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.358
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe45c540-e37d-11e4-b571-0800200c9a66' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:10.851 [print] title:Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* print title 0.000
18:08:10.851 [print] Zwemwaterlocaties en zwemwaterkwaliteit - monsterpunten
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:37 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "fe45c540-e37d-11e4-b571-0800200c9a66" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
48.158
Scenario Outline Check dataset record in ngr voor b6ee58a1-b097-4c6d-8600-eb81efc1468c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b6ee58a1-b097-4c6d-8600-eb81efc1468c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b6ee58a1-b097-4c6d-8600-eb81efc1468c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:11.394 [print] title:Productie/industrie-inrichtingen (o.b.v. SBI-codes) uit {Risico Register Gevaarlijke stoffen (RRGS)}
* print title 0.000
18:08:11.394 [print] Productie/industrie-inrichtingen (o.b.v. SBI-codes) uit {Risico Register Gevaarlijke stoffen (RRGS)}
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:08:11.396 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/EstablishmentsInvolvingDangerousSubstances-dir-2012-18",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/pf/4.0/ProductionAndIndustrialFacilities.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/pf",
  "https://www.iana.org/assignments/media-types/image/png",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/pf"
]
* def id = "b6ee58a1-b097-4c6d-8600-eb81efc1468c" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 23.810
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/EstablishmentsInvolvingDangerousSubstances-dir-2012-18}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/pf/4.0/ProductionAndIndustrialFacilities.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/pf}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/pf}]
errors:
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:11.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:11.401 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.352
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c"
}
> * print "testing xlinkurl: 0.000
18:08:11.755 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:11.756 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=b6ee58a1-b097-4c6d-8600-eb81efc1468c
> Given url link 0.000
> When method HEAD 0.435
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/EstablishmentsInvolvingDangerousSubstances-dir-2012-18"
}
> * print "testing xlinkurl: 0.000
18:08:12.192 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.192 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/EstablishmentsInvolvingDangerousSubstances-dir-2012-18
> Given url link 0.000
> When method HEAD 16.036
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:28.230 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.230 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.036
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:28.267 status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:08:28.267 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:28.269 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.269 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/pf/4.0/ProductionAndIndustrialFacilities.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:28.953 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.954 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/pf/4.0/ProductionAndIndustrialFacilities.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/pf"
}
> * print "testing xlinkurl: 0.000
18:08:29.166 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:29.166 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/pf
> Given url link 0.000
> When method HEAD 3.007
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:32.175 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:32.175 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.172
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:32.349 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:32.349 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:32.350 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:32.350 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/pf"
}
> * print "testing xlinkurl: 0.001
18:08:32.350 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:32.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:32.352 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/pf
> Given url link 0.000
> When method HEAD 2.855
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
30.607
Scenario Outline Check dataset record in ngr voor 791adbe3-772f-42cb-a3be-5a617bcecef0
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '791adbe3-772f-42cb-a3be-5a617bcecef0' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '791adbe3-772f-42cb-a3be-5a617bcecef0' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:11.835 [print] title:Zeegebieden (INSPIRE geharmoniseerd)
* print title 0.000
18:08:11.835 [print] Zeegebieden (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:11.837 [print] [
  "http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "791adbe3-772f-42cb-a3be-5a617bcecef0" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 15.041
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"
}
> * print "testing xlinkurl: 0.000
18:08:11.841 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:11.841 [print] testing xlinkurl:http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:08:11.843 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3
18:08:11.843 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr"
}
> * print "testing xlinkurl: 0.000
18:08:11.844 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/9778afe6-2152-4a8f-ba32-9697625401e3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:08:11.845 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:11.846 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/sr
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:12.537 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.537 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:12.599 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.599 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 14.280
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
11.432
Scenario Outline Check dataset record in ngr voor 7D35598D-DFBF-C64D-0F1A-92A80A45EB14
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7D35598D-DFBF-C64D-0F1A-92A80A45EB14' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.507
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7D35598D-DFBF-C64D-0F1A-92A80A45EB14' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:12.373 [print] title:BRO GeoTOP (GTM)
* print title 0.000
18:08:12.373 [print] BRO GeoTOP (GTM)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:12.374 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/NAP",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "7D35598D-DFBF-C64D-0F1A-92A80A45EB14" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 5.461
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/NAP}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/NAP"
}
> * print "testing xlinkurl: 0.000
18:08:12.382 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.382 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/NAP
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
18:08:12.683 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.683 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
18:08:12.965 status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge"
}
> * print "testing xlinkurl: 0.000
18:08:12.965 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesddf87610-2724-11e2-81c1-0800200c9a66, response: 
18:08:12.966 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:12.966 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge
> Given url link 0.000
> When method HEAD 0.697
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:13.665 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:13.665 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.061
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:13.728 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:13.729 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.107
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:25.991
Scenario Outline Check dataset record in ngr voor 9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.523
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:13.959 [print] title:Zwemwater (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* print title 0.000
18:08:13.959 [print] Zwemwater (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:13.961 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/am"
]
* def id = "9986a7ef-e5e2-4a7a-9018-2e1f9631ba8c" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:12.739
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/am}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:13.966 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:13.967 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e"
}
> * print "testing xlinkurl: 0.005
18:08:14.280 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:14.280 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c829abeb-bfac-4224-8332-e7a9a89e692e
> Given url link 0.000
> When method HEAD 0.269
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:14.550 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:14.551 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.098
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:14.649 status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:14.649 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 98, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:14.650 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:14.650 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 32.429
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:47.080 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.080 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.209
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:08:47.291 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.292 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.677
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:47.970 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.971 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:48.138 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:08:48.140 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:48.309 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:48.310 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 15.103
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:03.415 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.415 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:03.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.637 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 16.185
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:19.824 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:19.824 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:19.992 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:19.993 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:26.022 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:26.023 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:26.023 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:26.023 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:09:26.023 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:26.024 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:26.024 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
36.187
Scenario Outline Check dataset record in ngr voor df5ee213-e1bd-433b-80f7-4ea20f493ca8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'df5ee213-e1bd-433b-80f7-4ea20f493ca8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'df5ee213-e1bd-433b-80f7-4ea20f493ca8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:17.101 [print] title:Zwemwaterkwaliteit (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* print title 0.000
18:08:17.102 [print] Zwemwaterkwaliteit (provinciaal en Rijkswateren) uit {Zwemwaterregister}
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
18:08:17.105 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  ""
]
* def id = "df5ee213-e1bd-433b-80f7-4ea20f493ca8" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.824
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:34.931 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8"
}
> * print "testing xlinkurl: 0.000
18:08:17.110 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:17.111 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=df5ee213-e1bd-433b-80f7-4ea20f493ca8
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:17.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
18:08:17.562 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.043
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:17.605 status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.002
18:08:17.605 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:17.608 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:17.609 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:19.614 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:19.614 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:19.826 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:19.827 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.232
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.001
18:08:20.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:20.062 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.340
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:08:21.404 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:21.405 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.171
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:21.577 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:21.578 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 13.351
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:34.931 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:34.931 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:34.931 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:34.931 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:4.306
Scenario Outline Check dataset record in ngr voor 34e6165f-1269-48d1-b255-0f05d163d692
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '34e6165f-1269-48d1-b255-0f05d163d692' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34e6165f-1269-48d1-b255-0f05d163d692' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:18.377 [print] title:Geluidszones rondom bedrijventerreinen zowel provinciaal als gemeentelijk
* print title 0.000
18:08:18.377 [print] Geluidszones rondom bedrijventerreinen zowel provinciaal als gemeentelijk
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:18.379 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/am"
]
* def id = "34e6165f-1269-48d1-b255-0f05d163d692" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 31.885
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/am}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:18.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:18.383 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692"
}
> * print "testing xlinkurl: 0.000
18:08:18.681 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:18.681 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=34e6165f-1269-48d1-b255-0f05d163d692
> Given url link 0.000
> When method HEAD 0.499
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:08:19.183 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:19.184 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.034
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:19.218 status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:19.219 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:19.219 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:19.219 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.695
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:19.916 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:19.916 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:08:20.125 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:20.125 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 3.160
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:23.286 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:23.287 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.174
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:23.462 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:23.463 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.001
18:08:23.632 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:23.632 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.336
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:08:34.970 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:34.970 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:35.139 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.139 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 0.686
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:08:35.827 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.827 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.169
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.001
18:08:35.999 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.000 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.129
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:47.130 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.130 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:47.130 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:47.130 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:08:47.131 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:47.131 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.131 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 3.134
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
8.301
Scenario Outline Check dataset record in ngr voor fe2f9091-1962-4073-9e3b-3e4aeed488a5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'fe2f9091-1962-4073-9e3b-3e4aeed488a5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.536
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'fe2f9091-1962-4073-9e3b-3e4aeed488a5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:22.851 [print] title:Beperkingen voor voertuigen (INSPIRE geharmoniseerde data)
* print title 0.000
18:08:22.851 [print] Beperkingen voor voertuigen (INSPIRE geharmoniseerde data)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:22.853 [print] [
  "https://www.nationaalgeoregister.nl",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  ""
]
* def id = "fe2f9091-1962-4073-9e3b-3e4aeed488a5" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.880
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=}]
errors:
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:26.737 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl"
}
> * print "testing xlinkurl: 0.000
18:08:22.860 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:22.860 [print] testing xlinkurl:https://www.nationaalgeoregister.nl
> Given url link 0.000
> When method HEAD 0.512
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:08:23.374 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:23.374 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.689
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf"
}
> * print "testing xlinkurl: 0.000
18:08:24.065 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:24.065 [print] testing xlinkurl:http://inspire.rdw.nl/www/download/Licentie-Geogedeeld-RDW.pdf
> Given url link 0.000
> When method HEAD 0.348
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:24.415 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:24.416 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.319
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:08:26.737 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:26.737 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:26.737 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:08:26.737 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:6.517
Scenario Outline Check dataset record in ngr voor 1249746f-c2a6-4639-98f2-251676b3528e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1249746f-c2a6-4639-98f2-251676b3528e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1249746f-c2a6-4639-98f2-251676b3528e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:24.466 [print] title:Maritieme grenzen - basislijn Noordzee
* print title 0.000
18:08:24.467 [print] Maritieme grenzen - basislijn Noordzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:24.469 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/mu/3.0/MaritimeUnits.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/au",
  "https://tools.ietf.org/html/rfc4287",
  "https://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "1249746f-c2a6-4639-98f2-251676b3528e" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 33.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/mu/3.0/MaritimeUnits.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/au}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"
}
> * print "testing xlinkurl: 0.001
18:08:24.475 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:08:24.476 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
18:08:24.756 status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:24.757 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd7ab6903-1152-450b-b81d-042682dcfd03, response: 
18:08:24.758 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:24.758 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.102
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:24.861 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:24.862 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 26.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/mu/3.0/MaritimeUnits.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:50.930 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:50.931 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/mu/3.0/MaritimeUnits.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:08:51.146 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:51.146 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 2.998
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:08:54.146 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:54.146 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.519
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:08:54.667 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:54.667 [print] testing xlinkurl:https://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 2.805
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.336
Scenario Outline Check dataset record in ngr voor a5241416-8401-4623-be61-57ef50447a41
Steps
Given path 'geonetwork/srv/dut/inspire' 0.001
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a5241416-8401-4623-be61-57ef50447a41' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5241416-8401-4623-be61-57ef50447a41' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:27.263 [print] title:Maritieme grenzen - Noordzee
* print title 0.000
18:08:27.263 [print] Maritieme grenzen - Noordzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:27.265 [print] [
  "https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "a5241416-8401-4623-be61-57ef50447a41" 0.013
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.400
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 277, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"
}
> * print "testing xlinkurl: 0.000
18:08:27.283 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:27.283 [print] testing xlinkurl:https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41
> Given url link 0.000
> When method HEAD 0.277
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 277, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
18:08:27.561 status code was: 400, expected: 200, response time: 277, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:27.561 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 277, url: https://www.nationaalgeoregister.nl:443/geonetwork/srv/api/records/a5241416-8401-4623-be61-57ef50447a41, response: 
18:08:27.562 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:27.562 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:08:27.641 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:27.642 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.260
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:33.904 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:33.905 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd
> Given url link 0.000
> When method HEAD 0.216
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:08:34.122 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:34.123 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.556
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.601
Scenario Outline Check dataset record in ngr voor 11a292bd-9022-4a9f-b1bf-02f5c89ad74a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '11a292bd-9022-4a9f-b1bf-02f5c89ad74a' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.542
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '11a292bd-9022-4a9f-b1bf-02f5c89ad74a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:27.426 [print] title:Totale potentie aardwarmte uit aquifers, INSPIRE
* print title 0.000
18:08:27.426 [print] Totale potentie aardwarmte uit aquifers, INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:27.428 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/23031",
  "https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "11a292bd-9022-4a9f-b1bf-02f5c89ad74a" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.528
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/23031}, {link=https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 290, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/23031"
}
> * print "testing xlinkurl: 0.000
18:08:27.432 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:27.432 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/23031
> Given url link 0.000
> When method HEAD 0.364
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"
}
> * print "testing xlinkurl: 0.000
18:08:27.797 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:27.797 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 290, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
18:08:28.088 status code was: 404, expected: 200, response time: 290, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge"
}
> * print "testing xlinkurl: 0.000
18:08:28.088 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 290, url: https://nationaalgeoregister.nl/geonetwork/srv/resources052a3480-1031-4d29-ba55-01672e2c50d9, response: 
18:08:28.090 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.090 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:28.769 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.769 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.057
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:28.829 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.829 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.127
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:54.802
Scenario Outline Check dataset record in ngr voor ca94a0cb-7561-4a10-a7d6-b840e56c33ff
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ca94a0cb-7561-4a10-a7d6-b840e56c33ff' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.558
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ca94a0cb-7561-4a10-a7d6-b840e56c33ff' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:28.552 [print] title:Provinciale monumenten
* print title 0.000
18:08:28.553 [print] Provinciale monumenten
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:28.555 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "ca94a0cb-7561-4a10-a7d6-b840e56c33ff" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:27.122
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60482, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:28.563 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.564 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.297
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff"
}
> * print "testing xlinkurl: 0.000
18:08:28.863 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:28.863 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=ca94a0cb-7561-4a10-a7d6-b840e56c33ff
> Given url link 0.000
> When method HEAD 0.486
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:29.351 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:29.351 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.043
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:29.395 status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:29.397 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 43, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:29.398 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:29.399 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.708
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.001
18:08:31.109 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:31.110 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.216
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:08:31.328 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:31.329 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 3.026
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:34.357 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:34.357 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.173
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:34.531 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:34.531 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:34.698 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:34.699 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1:0.687
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60482, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:09:35.387 status code was: 502, expected: 200, response time: 60482, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:35.387 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60482, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:09:35.388 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:35.388 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:35.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:35.557 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 15.571
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:51.129 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:51.129 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:51.298 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:51.298 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.346
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:52.646 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:52.647 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:52.647 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:52.647 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:52.647 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:52.648 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:52.648 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 3.035
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:26.652
Scenario Outline Check dataset record in ngr voor f002bfc5-7d87-46b6-819e-8415422b65c9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f002bfc5-7d87-46b6-819e-8415422b65c9' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f002bfc5-7d87-46b6-819e-8415422b65c9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:35.204 [print] title:Aardkundige waarden
* print title 0.000
18:08:35.205 [print] Aardkundige waarden
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.003
18:08:35.210 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "f002bfc5-7d87-46b6-819e-8415422b65c9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 43.064
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:35.214 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.214 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.350
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9"
}
> * print "testing xlinkurl: 0.000
18:08:35.566 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.566 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f002bfc5-7d87-46b6-819e-8415422b65c9
> Given url link 0.000
> When method HEAD 0.454
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:36.022 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.022 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.037
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:36.059 status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:36.060 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 37, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:36.062 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.063 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.201
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:47.266 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.266 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.219
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:08:47.486 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.487 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.768
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:48.256 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:48.256 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:48.423 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:48.423 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:48.591 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:48.591 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 15.664
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:04.257 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:04.257 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:04.425 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:04.425 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.974
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:11.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:11.401 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:11.569 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:11.569 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.999
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:17.570 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:17.570 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:17.571 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:17.571 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:17.571 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:17.572 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:17.572 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.703
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:4.244
Scenario Outline Check dataset record in ngr voor cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:35.450 [print] title:Stiltegebieden
* print title 0.000
18:08:35.450 [print] Stiltegebieden
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:35.452 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 31.865
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:35.456 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.456 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5"
}
> * print "testing xlinkurl: 0.000
18:08:35.747 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.747 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=cc408b2d-09a6-4b2b-9aa3-b46bfe2f00a5
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:36.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.197 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.044
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:36.242 status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:36.242 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:36.243 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.243 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.697
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:08:39.942 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:39.942 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:08:40.157 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:40.157 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.743
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:40.902 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:40.903 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:08:41.072 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:41.073 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.175
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:41.249 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:41.249 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.692
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:08:42.944 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:42.944 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:43.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:43.111 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.045
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:08:45.158 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:45.158 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:08:45.326 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:45.327 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.283
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:06.612 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:06.612 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:06.612 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:06.612 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:06.612 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:06.613 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:06.613 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.705
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:42.998
Scenario Outline Check dataset record in ngr voor 49ab8bee-b467-486a-96ca-b950443c453a
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '49ab8bee-b467-486a-96ca-b950443c453a' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.554
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '49ab8bee-b467-486a-96ca-b950443c453a' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:35.516 [print] title:Beschermde gebieden - Provincies (INSPIRE geharmoniseerd)
* print title 0.000
18:08:35.517 [print] Beschermde gebieden - Provincies (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:08:35.521 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "49ab8bee-b467-486a-96ca-b950443c453a" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 51.221
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:35.525 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.526 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a"
}
> * print "testing xlinkurl: 0.000
18:08:35.818 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:35.818 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=49ab8bee-b467-486a-96ca-b950443c453a
> Given url link 0.000
> When method HEAD 0.444
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:36.264 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.264 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.049
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:36.314 status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:36.314 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 49, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:36.314 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:36.316 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 26.386
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:09:02.704 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:02.704 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.218
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:02.923 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:02.923 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:03.614 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.614 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:03.781 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.782 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:03.951 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.951 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 3.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:07.642 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:07.642 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.169
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:07.812 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:07.813 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.022
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.001
18:09:13.837 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:13.837 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:14.005 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:14.006 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 12.045
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:26.052 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:26.052 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:26.052 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:26.052 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:26.053 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:26.053 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:26.053 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
12.936
Scenario Outline Check dataset record in ngr voor 76091be7-358a-4a44-8182-b4139c96c6a4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '76091be7-358a-4a44-8182-b4139c96c6a4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '76091be7-358a-4a44-8182-b4139c96c6a4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:46.505 [print] title:Adressen
* print title 0.000
18:08:46.505 [print] Adressen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:46.506 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/EPSG:28992",
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ad",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "76091be7-358a-4a44-8182-b4139c96c6a4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 6.209
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/EPSG:28992}, {link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ad}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/EPSG:28992"
}
> * print "testing xlinkurl: 0.000
18:08:46.510 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:46.511 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/EPSG:28992
> Given url link 0.000
> When method HEAD 0.337
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"
}
> * print "testing xlinkurl: 0.000
18:08:46.849 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:46.849 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77
> Given url link 0.000
> When method HEAD 0.035
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:08:46.885 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 36 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77
18:08:46.885 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ad"
}
> * print "testing xlinkurl: 0.000
18:08:46.885 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a77"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:08:46.885 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:46.886 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ad
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:47.564 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:47.564 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.707
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:08:52.273 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:52.273 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.443
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:20.661
Scenario Outline Check dataset record in ngr voor 0558a41c-b09a-47fa-b8db-9de6bfe4f494
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '0558a41c-b09a-47fa-b8db-9de6bfe4f494' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.536
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0558a41c-b09a-47fa-b8db-9de6bfe4f494' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:50.808 [print] title:Gebouwen
* print title 0.000
18:08:50.808 [print] Gebouwen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:50.810 [print] [
  "http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  ""
]
* def id = "0558a41c-b09a-47fa-b8db-9de6bfe4f494" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 40.060
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:30.872 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"
}
> * print "testing xlinkurl: 0.000
18:08:50.813 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:50.814 [print] testing xlinkurl:http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:08:50.815 java.net.UnknownHostException: kadaster, http call failed after 1 milliseconds for URL: http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2
18:08:50.815 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu"
}
> * print "testing xlinkurl: 0.000
18:08:50.815 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/79a1c01b-21ad-43e8-a5c2-23e3eeb95be2"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:08:50.815 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:08:50.817 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu
> Given url link 0.000
> When method HEAD 0.695
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:51.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:51.513 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.078
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:51.592 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:51.593 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 39.276
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:30.871 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:30.871 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:30.872 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:30.872 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:40.905
Scenario Outline Check dataset record in ngr voor 0f128799-cf18-4b37-a721-e62b068191f5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '0f128799-cf18-4b37-a721-e62b068191f5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.524
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '0f128799-cf18-4b37-a721-e62b068191f5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:53.246 [print] title:Gebiedsbeheer, gebieden waar beperkingen gelden, gereguleerde gebieden en rapportage-eenheden - Provincies (INSPIRE geharmoniseerd)
* print title 0.000
18:08:53.246 [print] Gebiedsbeheer, gebieden waar beperkingen gelden, gereguleerde gebieden en rapportage-eenheden - Provincies (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.001
18:08:53.250 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/am"
]
* def id = "0f128799-cf18-4b37-a721-e62b068191f5" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 50.189
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/am}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:53.254 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:53.255 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.301
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5"
}
> * print "testing xlinkurl: 0.000
18:08:53.557 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:53.557 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=0f128799-cf18-4b37-a721-e62b068191f5
> Given url link 0.000
> When method HEAD 0.464
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:08:54.023 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:54.024 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.042
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:54.067 status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:54.067 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 42, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:08:54.068 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:54.068 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 26.021
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:09:20.091 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:20.092 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.215
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:09:20.308 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:20.308 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.689
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:20.999 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:20.999 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:21.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:21.168 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:21.337 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:21.337 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:23.342 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:23.342 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:23.510 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:23.511 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 13.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:36.578 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:36.578 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:36.746 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:36.746 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:42.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:42.775 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:42.775 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:42.775 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:09:42.775 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:42.776 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:42.776 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.665
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:19.516
Scenario Outline Check dataset record in ngr voor 2daad588-11ef-47de-9832-6fe2c3b93e6d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2daad588-11ef-47de-9832-6fe2c3b93e6d' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.593
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2daad588-11ef-47de-9832-6fe2c3b93e6d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:57.211 [print] title:Overstromingsrisicokaarten
* print title 0.000
18:08:57.212 [print] Overstromingsrisicokaarten
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:08:57.216 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/nz",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/nz"
]
* def id = "2daad588-11ef-47de-9832-6fe2c3b93e6d" 0.005
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:9.458
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d"
}
> * print "testing xlinkurl: 0.002
18:08:57.227 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.228 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=2daad588-11ef-47de-9832-6fe2c3b93e6d
> Given url link 0.000
> When method HEAD 0.445
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:08:57.674 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.674 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60
> Given url link 0.000
> When method HEAD 6.015
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:03.691 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.691 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.040
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:09:03.732 status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:03.732 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 41, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:09:03.732 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.732 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.707
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd"
}
> * print "testing xlinkurl: 0.000
18:09:07.441 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:07.441 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:09:07.653 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:07.653 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.686
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.001
18:09:08.342 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.343 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.001
18:09:08.512 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.513 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.173
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:08.687 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.688 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:08.856 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.856 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:09.025 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:09.025 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 17.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:26.055 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:26.055 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:26.222 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:26.223 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.053
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:47.278 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:47.278 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:47.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:47.445 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:53.613 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:53.613 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:53.781 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:53.782 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.324
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:10:05.107 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.107 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:05.329 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.329 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 0.672
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:10:06.003 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:06.003 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:06.003 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:10:06.003 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:10:06.004 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:06.004 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:06.004 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.675
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
11.393
Scenario Outline Check dataset record in ngr voor 6cde2ce7-3ecd-4785-b7b8-d62c3381efe9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6cde2ce7-3ecd-4785-b7b8-d62c3381efe9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.590
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6cde2ce7-3ecd-4785-b7b8-d62c3381efe9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:57.273 [print] title:Wijk- en Buurtkaart 2016 versie 3
* print title 0.000
18:08:57.273 [print] Wijk- en Buurtkaart 2016 versie 3
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:57.276 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/25831",
  "http://www.opengis.net/def/crs/EPSG/0/25832",
  "http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://www.opengis.net/def/crs/EPSG/0/3857",
  "http://www.opengis.net/def/crs/EPSG/0/4326",
  "https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2016",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download",
  "https://tools.ietf.org/html/rfc5023",
  ""
]
* def id = "6cde2ce7-3ecd-4785-b7b8-d62c3381efe9" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 5.400
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/25831}, {link=http://www.opengis.net/def/crs/EPSG/0/25832}, {link=http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://www.opengis.net/def/crs/EPSG/0/3857}, {link=http://www.opengis.net/def/crs/EPSG/0/4326}, {link=https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2016}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download}, {link=https://tools.ietf.org/html/rfc5023}, {link=}]
errors:
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:02.678 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/25831"
}
> * print "testing xlinkurl: 0.000
18:08:57.281 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.282 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/25831
> Given url link 0.000
> When method HEAD 0.357
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/25832"
}
> * print "testing xlinkurl: 0.000
18:08:57.640 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.641 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/25832
> Given url link 0.000
> When method HEAD 0.296
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:08:57.938 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.938 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/3857"
}
> * print "testing xlinkurl: 0.000
18:08:58.239 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:58.240 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/3857
> Given url link 0.000
> When method HEAD 0.304
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/4326"
}
> * print "testing xlinkurl: 0.000
18:08:58.546 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:58.546 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/4326
> Given url link 0.000
> When method HEAD 0.302
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2016"
}
> * print "testing xlinkurl: 0.001
18:08:58.850 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:58.851 [print] testing xlinkurl:https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2016
> Given url link 0.000
> When method HEAD 0.619
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd"
}
> * print "testing xlinkurl: 0.000
18:08:59.472 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:59.472 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:00.153 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:00.153 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.049
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:00.203 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:00.204 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.356
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download"
}
> * print "testing xlinkurl: 0.000
18:09:01.561 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:01.562 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download
> Given url link 0.000
> When method HEAD 0.665
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc5023"
}
> * print "testing xlinkurl: 0.000
18:09:02.228 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:02.228 [print] testing xlinkurl:https://tools.ietf.org/html/rfc5023
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:02.678 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:02.678 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:02.678 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:02.678 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.496
Scenario Outline Check dataset record in ngr voor 73ec579e-c906-433a-b0b6-d3aa33421558
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '73ec579e-c906-433a-b0b6-d3aa33421558' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.336
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '73ec579e-c906-433a-b0b6-d3aa33421558' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:57.813 [print] title:Luchtvaartinformatie
* print title 0.000
18:08:57.813 [print] Luchtvaartinformatie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:57.814 [print] [
  "u",
  "r",
  "n",
  ":",
  "o",
  "g",
  "c",
  ":",
  "d",
  "e",
  "f",
  ":",
  "c",
  "r",
  "s",
  ":",
  "E",
  "P",
  "S",
  "G",
  ":",
  ":",
  "5",
  "6",
  "2",
  "1"
]
* def id = "73ec579e-c906-433a-b0b6-d3aa33421558" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.090
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=u}, {link=r}, {link=n}, {link=:}, {link=o}, {link=g}, {link=c}, {link=:}, {link=d}, {link=e}, {link=f}, {link=:}, {link=c}, {link=r}, {link=s}, {link=:}, {link=E}, {link=P}, {link=S}, {link=G}, {link=:}, {link=:}, {link=5}, {link=6}, {link=2}, {link=1}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"E"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"G"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"5"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"6"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"2"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.906 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"1"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
18:08:57.818 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.005
18:08:57.823 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.824 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:08:57.824 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:08:57.825 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.825 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.826 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.826 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:08:57.827 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:08:57.827 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.828 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.828 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.829 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:08:57.829 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.007
18:08:57.830 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.837 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.838 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.838 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:08:57.838 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.840 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.841 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.841 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:08:57.842 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
18:08:57.843 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.845 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.845 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.846 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:08:57.846 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
18:08:57.847 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.849 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.849 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.850 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
18:08:57.851 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
18:08:57.851 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.853 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.854 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:08:57.855 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.856 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.856 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:08:57.856 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:08:57.857 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.859 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.859 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.859 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:08:57.859 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
18:08:57.859 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.862 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.863 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.863 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
18:08:57.864 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
18:08:57.864 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.866 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.866 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.867 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
18:08:57.868 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.869 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.869 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.870 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
18:08:57.870 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:08:57.870 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.870 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.870 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.871 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:08:57.871 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:08:57.871 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.871 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.872 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.872 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:08:57.872 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
18:08:57.872 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.873 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.873 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.873 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "E"
}
> * print "testing xlinkurl: 0.003
18:08:57.873 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.877 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.877 [print] testing xlinkurl:E
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.881 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: E
18:08:57.881 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "P"
}
> * print "testing xlinkurl: 0.000
18:08:57.882 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"E"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.882 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.882 [print] testing xlinkurl:P
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.882 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: P
18:08:57.883 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "S"
}
> * print "testing xlinkurl: 0.000
18:08:57.883 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"P"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.884 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.884 [print] testing xlinkurl:S
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.884 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: S
18:08:57.884 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "G"
}
> * print "testing xlinkurl: 0.000
18:08:57.884 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"S"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.885 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.885 [print] testing xlinkurl:G
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.885 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: G
18:08:57.885 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
18:08:57.885 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"G"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.886 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.886 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.886 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
18:08:57.886 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.887 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.887 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.887 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "5"
}
> * print "testing xlinkurl: 0.000
18:08:57.887 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:08:57.887 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.888 [print] testing xlinkurl:5
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.888 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 5
18:08:57.888 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "6"
}
> * print "testing xlinkurl: 0.011
18:08:57.888 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"5"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.900 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.900 [print] testing xlinkurl:6
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.900 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 6
18:08:57.904 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "2"
}
> * print "testing xlinkurl: 0.000
18:08:57.904 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"6"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.905 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.905 [print] testing xlinkurl:2
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.905 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 2
18:08:57.905 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "1"
}
> * print "testing xlinkurl: 0.000
18:08:57.905 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"2"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.906 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:57.906 [print] testing xlinkurl:1
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:08:57.906 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 1
18:08:57.906 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:2.886
Scenario Outline Check dataset record in ngr voor 17716ed7-ce0d-4bfd-8868-a398e5578a36
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '17716ed7-ce0d-4bfd-8868-a398e5578a36' 0.007
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.522
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '17716ed7-ce0d-4bfd-8868-a398e5578a36' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:08:58.438 [print] title:Ruimtelijke plannen Wro: Ruimtelijkeplannen.nl
* print title 0.000
18:08:58.438 [print] Ruimtelijke plannen Wro: Ruimtelijkeplannen.nl
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:08:58.441 [print] [
  "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "17716ed7-ce0d-4bfd-8868-a398e5578a36" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:1.176
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60481, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"
}
> * print "testing xlinkurl: 0.000
18:08:58.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:58.445 [print] testing xlinkurl:http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76
> Given url link 0.000
> When method HEAD 0.041
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:08:58.485 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 40 milliseconds for URL: http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76
18:08:58.486 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:08:58.487 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0e76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:08:58.488 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:08:58.489 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.686
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60481, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:09:59.176 status code was: 502, expected: 200, response time: 60481, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:09:59.176 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60481, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:09:59.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:59.177 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
42.071
Scenario Outline Check dataset record in ngr voor db8d613f-5edc-4467-9cc0-e2dcfb9d64a8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'db8d613f-5edc-4467-9cc0-e2dcfb9d64a8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.502
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'db8d613f-5edc-4467-9cc0-e2dcfb9d64a8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:03.185 [print] title:Statistical Units Grid
* print title 0.000
18:09:03.185 [print] Statistical Units Grid
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:03.187 [print] [
  "https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/european",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  ""
]
* def id = "db8d613f-5edc-4467-9cc0-e2dcfb9d64a8" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 20.783
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/european}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 445, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:23.972 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"
}
> * print "testing xlinkurl: 0.000
18:09:03.191 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.192 [print] testing xlinkurl:https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 445, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
18:09:03.638 status code was: 400, expected: 200, response time: 445, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/european"
}
> * print "testing xlinkurl: 0.002
18:09:03.638 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs"}
checkxlinkurl.template.feature:15 - status code was: 400, expected: 200, response time: 445, url: https://geodata.nationaalgeoregister.nl/inspire/su-grid/wfs, response: 
18:09:03.640 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:03.641 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/european
> Given url link 0.000
> When method HEAD 14.087
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:17.730 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:17.730 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.073
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:17.804 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:17.805 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 5.997
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:23.804 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:23.804 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:23.971 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:23.971 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:23.972 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:23.972 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:39.542
Scenario Outline Check dataset record in ngr voor 60a2a7c2-d5b3-4ad5-b562-c448695357fb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '60a2a7c2-d5b3-4ad5-b562-c448695357fb' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '60a2a7c2-d5b3-4ad5-b562-c448695357fb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:07.839 [print] title:Nationale Landschappen
* print title 0.000
18:09:07.839 [print] Nationale Landschappen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:07.841 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "60a2a7c2-d5b3-4ad5-b562-c448695357fb" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 49.512
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:09:07.847 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:07.847 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.353
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb"
}
> * print "testing xlinkurl: 0.000
18:09:08.202 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.202 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=60a2a7c2-d5b3-4ad5-b562-c448695357fb
> Given url link 0.000
> When method HEAD 0.482
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:08.686 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.686 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.034
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:09:08.720 status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:08.720 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:09:08.720 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:08.721 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 32.065
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:09:40.787 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.787 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:41.003 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.003 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.671
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:41.676 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.676 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:41.844 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.844 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:42.012 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:42.012 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 12.153
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:54.166 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:54.166 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:54.333 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:54.333 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 0.713
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:55.047 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:55.047 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:55.216 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:55.216 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.365
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:56.582 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:56.582 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:56.583 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:56.583 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:56.583 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:56.584 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:56.584 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.772
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
6.928
Scenario Outline Check dataset record in ngr voor 2cc2c30c-91b8-412a-a060-e84d25272581
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2cc2c30c-91b8-412a-a060-e84d25272581' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.551
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2cc2c30c-91b8-412a-a060-e84d25272581' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:18.831 [print] title:Zones en agglomeraties (Richtlijn Luchtkwaliteit) 2013
* print title 0.000
18:09:18.831 [print] Zones en agglomeraties (Richtlijn Luchtkwaliteit) 2013
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:18.832 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "2cc2c30c-91b8-412a-a060-e84d25272581" 0.008
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.183
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:09:18.843 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:18.843 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.551
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"
}
> * print "testing xlinkurl: 0.000
18:09:19.396 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:19.397 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b
> Given url link 0.000
> When method HEAD 0.357
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:09:19.754 javax.net.ssl.SSLException: Connection reset, http call failed after 357 milliseconds for URL: https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b
18:09:19.754 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:09:19.754 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#5cb4b489-67c8-44bc-85c5-424a80a53b3b"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:09:19.755 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:19.755 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.570
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:20.327 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:20.327 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.696
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:4.849
Scenario Outline Check dataset record in ngr voor 6f84efeb-fc1d-4565-a721-80735ea57dbd
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6f84efeb-fc1d-4565-a721-80735ea57dbd' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6f84efeb-fc1d-4565-a721-80735ea57dbd' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:22.538 [print] title:Rijksmonumenten (verouderd)
* print title 0.000
18:09:22.538 [print] Rijksmonumenten (verouderd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:22.540 [print] [
  "http://services.rce.geovoorziening.nl/www/download/nl.xml",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps",
  "http://creativecommons.org/licenses/by/3.0/nl/",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287",
  "",
  ""
]
* def id = "6f84efeb-fc1d-4565-a721-80735ea57dbd" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:2.169
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://services.rce.geovoorziening.nl/www/download/nl.xml}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps}, {link=http://creativecommons.org/licenses/by/3.0/nl/}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60484, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:24.711 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://services.rce.geovoorziening.nl/www/download/nl.xml"
}
> * print "testing xlinkurl: 0.000
18:09:22.545 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:22.545 [print] testing xlinkurl:http://services.rce.geovoorziening.nl/www/download/nl.xml
> Given url link 0.000
> When method HEAD 0.182
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps"
}
> * print "testing xlinkurl: 0.000
18:09:22.729 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:22.729 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps
> Given url link 0.000
> When method HEAD 0.761
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/3.0/nl/"
}
> * print "testing xlinkurl: 0.000
18:09:23.491 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:23.492 [print] testing xlinkurl:http://creativecommons.org/licenses/by/3.0/nl/
> Given url link 0.000
> When method HEAD 0.070
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:23.564 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:23.564 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.690
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60484, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:10:24.255 status code was: 502, expected: 200, response time: 60484, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:24.255 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60484, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:10:24.256 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:24.256 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
18:10:24.704 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:24.705 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:24.706 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:10:24.706 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:10:24.707 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:24.708 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:24.709 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:24.709 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:10:24.710 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:52.481
Scenario Outline Check dataset record in ngr voor c7d8d77b-8c47-4309-8c58-9b12b086407f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c7d8d77b-8c47-4309-8c58-9b12b086407f' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c7d8d77b-8c47-4309-8c58-9b12b086407f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.009
* print 'title:' + title 0.000
18:09:24.508 [print] title:Natuurnetwerk Nederland
* print title 0.000
18:09:24.508 [print] Natuurnetwerk Nederland
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.010
* print nlinks 0.004
18:09:24.525 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "c7d8d77b-8c47-4309-8c58-9b12b086407f" 0.004
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 55.968
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:09:24.535 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:24.535 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.351
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f"
}
> * print "testing xlinkurl: 0.001
18:09:24.889 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:24.890 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=c7d8d77b-8c47-4309-8c58-9b12b086407f
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:25.334 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:25.335 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:09:25.374 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:25.374 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:09:25.375 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:25.375 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.999
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:09:27.375 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.375 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:09:27.588 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.589 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.659
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:28.250 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:28.250 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:09:28.417 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:28.418 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:28.586 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:28.586 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.033
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:34.621 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:34.621 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:34.843 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:34.843 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 7.706
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:09:42.552 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:42.552 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:09:42.722 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:42.722 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 37.083
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:10:19.807 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:19.807 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:19.807 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:10:19.807 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:10:19.810 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:10:19.811 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:19.811 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
24.190
Scenario Outline Check dataset record in ngr voor 83dab947-387b-49df-8ad2-32bb10d46d38
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '83dab947-387b-49df-8ad2-32bb10d46d38' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '83dab947-387b-49df-8ad2-32bb10d46d38' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:27.220 [print] title:Geluidkaart Schiphol 2016 (Lden)
* print title 0.000
18:09:27.220 [print] Geluidkaart Schiphol 2016 (Lden)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:27.222 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/epsg:28992",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationDEN-dir-2002-49",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "83dab947-387b-49df-8ad2-32bb10d46d38" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 11.838
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/epsg:28992}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 439, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/epsg:28992"
}
> * print "testing xlinkurl: 0.000
18:09:27.228 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.228 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/epsg:28992
> Given url link 0.000
> When method HEAD 0.289
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"
}
> * print "testing xlinkurl: 0.000
18:09:27.519 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.519 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38
> Given url link 0.000
> When method HEAD 0.439
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 439, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
18:09:27.959 status code was: 500, expected: 200, response time: 439, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:09:27.959 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 439, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records83dab947-387b-49df-8ad2-32bb10d46d38, response: 
18:09:27.960 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.960 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 4.038
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:32.000 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:32.000 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.070
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:32.072 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:32.072 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.989
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
24.209
Scenario Outline Check dataset record in ngr voor 5951efa2-1ff3-4763-a966-a2f5497679ee
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5951efa2-1ff3-4763-a966-a2f5497679ee' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.523
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5951efa2-1ff3-4763-a966-a2f5497679ee' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:27.270 [print] title:Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd)
* print title 0.000
18:09:27.271 [print] Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:09:27.274 [print] [
  "http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "5951efa2-1ff3-4763-a966-a2f5497679ee" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 11.842
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"
}
> * print "testing xlinkurl: 0.000
18:09:27.279 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.279 [print] testing xlinkurl:http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf
> Given url link 0.000
> When method HEAD 0.041
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:09:27.321 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 40 milliseconds for URL: http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf
18:09:27.321 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:09:27.321 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/ff1d6d44-aea1-4ad5-b084-9afea143f1bf"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:09:27.322 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:27.322 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.685
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:09:28.009 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:28.009 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.064
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:28.075 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:28.075 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.041
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
18.952
Scenario Outline Check dataset record in ngr voor f2f86edf-ac3a-48e8-9292-0544da2d7645
Steps
Given path 'geonetwork/srv/dut/inspire' 0.002
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f2f86edf-ac3a-48e8-9292-0544da2d7645' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.498
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f2f86edf-ac3a-48e8-9292-0544da2d7645' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:31.376 [print] title:Emissies naar het riool in 2015 vanuit de industrie
* print title 0.000
18:09:31.376 [print] Emissies naar het riool in 2015 vanuit de industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:31.378 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "f2f86edf-ac3a-48e8-9292-0544da2d7645" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 9.224
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:09:31.381 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:31.381 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.530
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"
}
> * print "testing xlinkurl: 0.000
18:09:31.913 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:31.913 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:09:32.269 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65
18:09:32.269 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:09:32.270 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#64d546c9-71d4-4c84-a04c-61c5d0734f65"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:09:32.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:32.271 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 2.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:34.581 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:34.581 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.022
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.348
Scenario Outline Check dataset record in ngr voor c935f2ab-9b65-4dc4-94a0-73aeb840a941
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.343
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c935f2ab-9b65-4dc4-94a0-73aeb840a941' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:39.410 [print] title:Overheidsdiensten
* print title 0.000
18:09:39.410 [print] Overheidsdiensten
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:37 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "c935f2ab-9b65-4dc4-94a0-73aeb840a941" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
16.247
Scenario Outline Check dataset record in ngr voor ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.521
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:39.642 [print] title:Wijk- en Buurtkaart 2018 versie 2
* print title 0.000
18:09:39.642 [print] Wijk- en Buurtkaart 2018 versie 2
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:39.644 [print] [
  "https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2018",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc5023",
  ""
]
* def id = "ffefc3dc-dc8f-4589-ae22-a60bebcdf5cb" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.861
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2018}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc5023}, {link=}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:47.507 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2018"
}
> * print "testing xlinkurl: 0.000
18:09:39.648 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:39.649 [print] testing xlinkurl:https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2018
> Given url link 0.000
> When method HEAD 0.463
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd"
}
> * print "testing xlinkurl: 0.000
18:09:40.113 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.113 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:09:40.791 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.791 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.054
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:40.846 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.846 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.071
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc5023"
}
> * print "testing xlinkurl: 0.000
18:09:46.919 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:46.920 [print] testing xlinkurl:https://tools.ietf.org/html/rfc5023
> Given url link 0.000
> When method HEAD 0.586
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:09:47.507 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:47.507 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:09:47.507 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:09:47.507 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:46.571
Scenario Outline Check dataset record in ngr voor 5a1adb58-0bbe-425d-b0fe-577a6c0a4228
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5a1adb58-0bbe-425d-b0fe-577a6c0a4228' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5a1adb58-0bbe-425d-b0fe-577a6c0a4228' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:39.958 [print] title:Actueel Hoogtebestand Nederland 1 (AHN1)
* print title 0.000
18:09:39.958 [print] Actueel Hoogtebestand Nederland 1 (AHN1)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:09:39.962 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "5a1adb58-0bbe-425d-b0fe-577a6c0a4228" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 53.017
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:39.968 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:39.969 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.316
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228"
}
> * print "testing xlinkurl: 0.000
18:09:40.287 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.287 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/5a1adb58-0bbe-425d-b0fe-577a6c0a4228
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.001
18:09:40.607 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.608 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.300
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:09:40.909 status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:09:40.909 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:09:40.909 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:40.909 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 18.085
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:09:58.996 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:58.996 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:09:59.292 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:59.292 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.712
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:10:03.006 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:03.006 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:10:03.006 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:10:03.006 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:10:03.006 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:10:03.007 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:03.007 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:10:03.216 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:03.216 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.682
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.001
18:10:03.901 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:03.901 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:10:04.110 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:04.111 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.700
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:10:04.813 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:04.813 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.237
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:10:05.052 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.052 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.236
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:10:05.289 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.290 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.243
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:10:05.534 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.534 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:10:05.830 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.830 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.238
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:10:06.070 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:06.071 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.246
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:06.319 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:06.319 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:12.387 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:12.387 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.012
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:18.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:18.401 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.067
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:29.470 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:29.470 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.982
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:31.455 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:31.455 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.598
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:32.055 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.055 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:32.499 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.500 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.480
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:34.253
Scenario Outline Check dataset record in ngr voor wt-f5eb-b09f-4f6d-8397-8878a1b86238
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-f5eb-b09f-4f6d-8397-8878a1b86238' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.552
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:41.160 [print] title:Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2011 (INSPIRE geharmoniseerd)
* print title 0.000
18:09:41.160 [print] Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2011 (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:41.161 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "wt-f5eb-b09f-4f6d-8397-8878a1b86238" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:16.850
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:41.165 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.165 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238"
}
> * print "testing xlinkurl: 0.000
18:09:41.466 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.467 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-f5eb-b09f-4f6d-8397-8878a1b86238
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:09:41.777 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.777 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:41.978 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:09:41.978 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:41.979 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:41.980 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 21.127
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:10:03.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:03.108 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 16.069
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:19.178 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:19.179 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 1.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:20.864 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:20.864 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:21.171 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:21.171 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:21.172 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.172 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:21.449 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.449 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 13.063
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:10:34.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:34.513 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:34.726 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:34.726 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 22.086
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:56.813 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:56.814 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.502
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:10:57.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:57.317 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.695
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:53.024
Scenario Outline Check dataset record in ngr voor wt-3730-e750-485a-9c0c-39bf9be72cf9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-3730-e750-485a-9c0c-39bf9be72cf9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-3730-e750-485a-9c0c-39bf9be72cf9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:43.985 [print] title:Menselijke gezondheid en veiligheid -  geluidbelasting rijkswegen 2006 (INSPIRE geharmoniseerd)
* print title 0.000
18:09:43.985 [print] Menselijke gezondheid en veiligheid -  geluidbelasting rijkswegen 2006 (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:09:43.988 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "wt-3730-e750-485a-9c0c-39bf9be72cf9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 56.245
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 367, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:43.996 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:43.997 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.300
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9"
}
> * print "testing xlinkurl: 0.000
18:09:44.298 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:44.299 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-3730-e750-485a-9c0c-39bf9be72cf9
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:09:44.613 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:44.614 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:44.814 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:09:44.814 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:44.815 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:44.815 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 16.033
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:10:00.849 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:00.850 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 26.464
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:27.315 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:27.315 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 0.696
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:28.013 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:28.014 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.367
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 367, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:28.382 status code was: 500, expected: 200, response time: 367, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:28.382 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 367, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:28.382 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
18:10:28.385 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:28.661 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:28.661 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.051
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:10:32.714 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.714 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.210
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:32.925 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.926 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.032
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:38.960 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:38.960 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.593
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:10:39.555 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:39.555 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.678
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4:11.083
Scenario Outline Check dataset record in ngr voor 50eef6be-619d-4e16-9b92-48971109b636
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '50eef6be-619d-4e16-9b92-48971109b636' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.524
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '50eef6be-619d-4e16-9b92-48971109b636' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:48.035 [print] title:Geluidbelasting rijkswegen in Nederland 2011 (nacht gemiddelde)
* print title 0.000
18:09:48.035 [print] Geluidbelasting rijkswegen in Nederland 2011 (nacht gemiddelde)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:48.037 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "50eef6be-619d-4e16-9b92-48971109b636" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2:5.280
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60457, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:48.041 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:48.041 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.411
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636"
}
> * print "testing xlinkurl: 0.000
18:09:48.453 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:48.454 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/50eef6be-619d-4e16-9b92-48971109b636
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:09:48.765 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:48.765 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:48.966 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:09:48.966 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:48.967 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:48.967 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 16.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:10:04.971 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:04.972 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationNight-dir-2002-49
> Given url link 0.000
> When method HEAD 10.022
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:14.996 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:14.996 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 6.051
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:21.049 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.049 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:21.355 status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:21.356 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:21.357 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.357 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:21.633 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.634 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.666
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60457, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:11:22.301 status code was: 502, expected: 200, response time: 60457, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:11:22.301 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60457, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:11:22.302 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:22.302 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:22.302 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:11:22.302 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:22.302 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:22.302 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:22.303 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.209
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:22.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:22.513 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 29.646
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:52.161 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.161 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.449
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:52.611 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.612 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.706
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:44.424
Scenario Outline Check dataset record in ngr voor 8de2f5eb-b09f-4f6d-8397-8878a1b86238
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '8de2f5eb-b09f-4f6d-8397-8878a1b86238' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.507
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '8de2f5eb-b09f-4f6d-8397-8878a1b86238' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:09:56.195 [print] title:Geluidbelasting rijkswegen in Nederland 2011 (24-uurs gemiddelde)
* print title 0.000
18:09:56.195 [print] Geluidbelasting rijkswegen in Nederland 2011 (24-uurs gemiddelde)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:56.197 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "8de2f5eb-b09f-4f6d-8397-8878a1b86238" 0.003
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:21.958
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:56.203 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:56.204 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.354
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238"
}
> * print "testing xlinkurl: 0.000
18:09:56.560 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:56.560 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/8de2f5eb-b09f-4f6d-8397-8878a1b86238
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:09:56.874 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:56.874 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:57.075 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:09:57.076 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:57.077 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:57.077 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.093
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:10:03.171 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:03.172 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 2.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:05.228 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:05.228 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 11.135
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:16.366 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:16.366 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.415
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:16.781 status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:16.781 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:16.782 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:16.783 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:17.059 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:17.059 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 15.738
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:10:32.798 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.798 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:10:32.799 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:10:32.799 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:10:32.799 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:10:32.799 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.799 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:33.008 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:33.008 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 43.961
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:16.971 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:16.971 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.505
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:17.477 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:17.477 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.681
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:38.040
Scenario Outline Check dataset record in ngr voor 9b583730-e750-485a-9c0c-39bf9be72cf9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9b583730-e750-485a-9c0c-39bf9be72cf9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.351
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9b583730-e750-485a-9c0c-39bf9be72cf9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.008
18:09:57.721 [print] title:Geluidbelasting rijkswegen in Nederland 2006 (24-uurs gemiddelde)
* print title 0.000
18:09:57.722 [print] Geluidbelasting rijkswegen in Nederland 2006 (24-uurs gemiddelde)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
18:09:57.727 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "9b583730-e750-485a-9c0c-39bf9be72cf9" 0.004
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:18.838
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60449, url: http://inspire.ec.europa.eu/theme#, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:57.736 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:57.737 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf9"
}
> * print "testing xlinkurl: 0.000
18:09:58.037 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:58.038 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf9
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:09:58.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:58.352 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:58.553 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:09:58.553 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:09:58.554 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:58.554 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 1:0.658
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60449, url: http://inspire.ec.europa.eu/theme#, response: 
18:10:59.213 status code was: 502, expected: 200, response time: 60449, url: http://inspire.ec.europa.eu/theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:10:59.213 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60449, url: http://inspire.ec.europa.eu/theme#, response: 
18:10:59.213 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:59.214 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:59.899 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:59.900 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 3.723
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:11:03.625 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:03.625 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:03.934 status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.001
18:11:03.935 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:03.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:03.937 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:11:04.212 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:04.213 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.325
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:11:13.539 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:13.540 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:13.540 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:11:13.540 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:13.540 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:13.540 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:13.541 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:13.749 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:13.749 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:15.438 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:15.438 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.451
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:15.890 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:15.890 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:26.858
Scenario Outline Check dataset record in ngr voor 9b583730-e750-485a-9c0c-39bf9be72cf8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9b583730-e750-485a-9c0c-39bf9be72cf8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.351
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9b583730-e750-485a-9c0c-39bf9be72cf8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:09:59.976 [print] title:Geluidbelasting rijkswegen in Nederland 2016 (24-uurs gemiddelde)
* print title 0.000
18:09:59.976 [print] Geluidbelasting rijkswegen in Nederland 2016 (24-uurs gemiddelde)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:09:59.977 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf8",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "9b583730-e750-485a-9c0c-39bf9be72cf8" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 43.255
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf8}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:09:59.982 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:09:59.982 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf8"
}
> * print "testing xlinkurl: 0.000
18:10:00.283 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:00.284 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/9b583730-e750-485a-9c0c-39bf9be72cf8
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:10:00.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:00.598 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:10:00.798 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:00.799 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:10:00.800 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:00.800 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 7.465
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:10:08.266 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:08.266 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 2.019
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:10.287 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:10.287 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 8.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:18.456 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:18.457 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:18.771 status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.001
18:10:18.771 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 314, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:18.777 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:10:18.778 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:19.052 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:19.052 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 21.048
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:10:40.102 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:40.102 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:40.315 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:40.315 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.704
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:10:42.020 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:42.020 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.537
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:10:42.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:42.559 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.675
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:10.224
Scenario Outline Check dataset record in ngr voor krm-a905-9d8e-4758-83fa-28b057f185e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krm-a905-9d8e-4758-83fa-28b057f185e3' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krm-a905-9d8e-4758-83fa-28b057f185e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:10:07.199 [print] title:Kaderrichtlijn Mariene Strategie - Rapportage eenheden Nederland EU2018
* print title 0.000
18:10:07.200 [print] Kaderrichtlijn Mariene Strategie - Rapportage eenheden Nederland EU2018
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
18:10:07.205 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MSFDReportingUnits-dir-2008-56",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "krm-a905-9d8e-4758-83fa-28b057f185e3" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:4.854
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MSFDReportingUnits-dir-2008-56}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:07.209 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:07.209 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.362
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3"
}
> * print "testing xlinkurl: 0.000
18:10:07.572 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:07.573 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e3
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:10:07.889 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:07.889 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:08.090 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:08.090 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:08.091 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:08.091 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 14.244
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MSFDReportingUnits-dir-2008-56"
}
> * print "testing xlinkurl: 0.000
18:10:22.337 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:22.337 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MSFDReportingUnits-dir-2008-56
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:23.015 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:23.015 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 6.086
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:29.103 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:29.103 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.415
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:29.519 status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:29.520 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 415, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:29.523 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:29.524 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:29.800 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:29.801 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 18.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:10:47.858 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:47.858 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.779
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:10:48.639 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:48.639 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:10:48.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:48.856 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 22.009
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:10.866 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:10.866 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.447
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:11.315 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:11.315 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.746
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:54.154
Scenario Outline Check dataset record in ngr voor krm-a905-9d8e-4758-83fa-28b057f185e4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krm-a905-9d8e-4758-83fa-28b057f185e4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.610
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krm-a905-9d8e-4758-83fa-28b057f185e4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:10:21.113 [print] title:Kaderrichtlijn Mariene Strategie - Mariene wateren Nederland EU2018
* print title 0.000
18:10:21.113 [print] Kaderrichtlijn Mariene Strategie - Mariene wateren Nederland EU2018
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:10:21.115 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MarineAssessmentUnits-dir-2008-56",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "krm-a905-9d8e-4758-83fa-28b057f185e4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 56.772
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MarineAssessmentUnits-dir-2008-56}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 320, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:21.119 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.119 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.357
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4"
}
> * print "testing xlinkurl: 0.000
18:10:21.478 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.478 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krm-a905-9d8e-4758-83fa-28b057f185e4
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:10:21.788 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:21.789 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.320
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 320, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:22.110 status code was: 404, expected: 200, response time: 320, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:22.110 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 320, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:22.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:22.111 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 22.172
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MarineAssessmentUnits-dir-2008-56"
}
> * print "testing xlinkurl: 0.000
18:10:44.284 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:44.285 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MarineAssessmentUnits-dir-2008-56
> Given url link 0.000
> When method HEAD 0.711
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:44.997 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:44.998 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 8.062
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:53.062 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:53.062 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:53.373 status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:53.373 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:53.374 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:53.374 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:10:53.649 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:53.649 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.036
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:11:04.687 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:04.687 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.761
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:05.450 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:05.451 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:05.663 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:05.664 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.048
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:16.713 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:16.713 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.502
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:17.217 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:17.218 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.670
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5:49.942
Scenario Outline Check dataset record in ngr voor tbjk534p-wubf-crbp-cj25-d4161160gfim
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'tbjk534p-wubf-crbp-cj25-d4161160gfim' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'tbjk534p-wubf-crbp-cj25-d4161160gfim' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:10:25.254 [print] title:Kaderrichtlijn Mariene Strategie - Bevroren monitoringsdata
* print title 0.000
18:10:25.254 [print] Kaderrichtlijn Mariene Strategie - Bevroren monitoringsdata
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.003
18:10:25.260 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2008-56",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/of/4.0/OceanFeatures.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/of",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "tbjk534p-wubf-crbp-cj25-d4161160gfim" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2:54.705
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2008-56}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/of/4.0/OceanFeatures.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/of}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60436, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:25.264 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
18:10:25.267 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.303
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim"
}
> * print "testing xlinkurl: 0.000
18:10:25.573 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:25.573 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/tbjk534p-wubf-crbp-cj25-d4161160gfim
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
18:10:25.885 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:25.885 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.202
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
18:10:26.088 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:26.088 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
18:10:26.089 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:26.089 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.004
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2008-56"
}
> * print "testing xlinkurl: 0.000
18:10:32.094 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:32.095 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2008-56
> Given url link 0.000
> When method HEAD 4.997
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:37.093 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:37.093 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 11.086
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:10:48.182 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:48.182 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:48.489 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:10:48.491 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:10:48.492 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:48.493 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:10:48.768 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:48.769 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 19.145
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/of/4.0/OceanFeatures.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:07.916 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:07.916 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/of/4.0/OceanFeatures.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/of"
}
> * print "testing xlinkurl: 0.000
18:11:08.129 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:08.129 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/of
> Given url link 0.000
> When method HEAD 3.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:11.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:11.134 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 0.692
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:11.828 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:11.829 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 7.991
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.001
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:19.824 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.824 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1:0.648
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60436, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:12:20.473 status code was: 502, expected: 200, response time: 60436, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:20.473 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60436, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:12:20.474 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:20.474 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 9.850
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:30.325 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:30.325 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 26.121
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:56.448 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:56.448 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:58.453 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:58.454 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.986
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:04.441 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:04.441 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.984
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:06.428 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:06.428 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.987
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:08.417 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:08.417 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.064
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:14.484 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:14.484 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:14.797 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:14.798 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.248
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.001
18:13:15.048 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:13:15.050 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.235
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:15.286 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.286 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.238
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:15.526 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.526 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.225
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:15.753 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.753 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.238
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:15.993 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.993 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.232
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:16.227 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:16.227 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.226
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:16.455 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:16.456 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.355
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:13:16.812 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:16.812 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.231
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:17.045 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:17.045 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 2.921
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:42.638
Scenario Outline Check dataset record in ngr voor krw2006-c57b-44a2-83a4-e51223d5f15g
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw2006-c57b-44a2-83a4-e51223d5f15g' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.507
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw2006-c57b-44a2-83a4-e51223d5f15g' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:10:33.493 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 lijnen
* print title 0.000
18:10:33.493 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 lijnen
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:10:33.495 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "krw2006-c57b-44a2-83a4-e51223d5f15g" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:21.066
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 345, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:33.498 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:33.498 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.418
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g"
}
> * print "testing xlinkurl: 0.000
18:10:33.917 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:33.917 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-c57b-44a2-83a4-e51223d5f15g
> Given url link 0.000
> When method HEAD 0.463
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.001
18:10:34.383 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:34.384 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:34.584 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:34.584 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:34.586 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:34.586 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 16.031
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:10:50.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:50.619 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 6.023
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:10:56.643 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:56.644 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 1.993
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:10:58.638 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:58.638 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 40.204
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:11:38.844 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:38.844 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.345
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 345, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:39.190 status code was: 500, expected: 200, response time: 345, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:11:39.190 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 345, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:39.191 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:39.191 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.271
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:11:39.464 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:39.464 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.984
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:11:43.450 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:43.450 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:43.450 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:11:43.450 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:11:43.450 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:43.451 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:43.451 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:44.136 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:44.137 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.209
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:44.347 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:44.347 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 9.011
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.001
18:11:53.361 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:53.361 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.512
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.002
18:11:53.877 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:53.877 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.685
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:25.017
Scenario Outline Check dataset record in ngr voor 622a632a-c57b-44a2-83a4-e51223d5f15g
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '622a632a-c57b-44a2-83a4-e51223d5f15g' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.504
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '622a632a-c57b-44a2-83a4-e51223d5f15g' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:10:40.744 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 lijnen
* print title 0.000
18:10:40.744 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 lijnen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:10:40.747 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "622a632a-c57b-44a2-83a4-e51223d5f15g" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:42.257
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:40.752 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:40.752 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g"
}
> * print "testing xlinkurl: 0.000
18:10:41.063 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:41.063 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/622a632a-c57b-44a2-83a4-e51223d5f15g
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:10:41.372 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:41.372 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:41.573 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:41.574 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:41.574 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:41.575 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 2.051
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:10:43.628 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:43.628 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 52.249
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:35.879 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:35.879 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 16.030
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:11:51.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.911 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 8.337
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:12:00.250 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:00.250 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:00.558 status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:00.560 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:00.562 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:00.562 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:12:00.836 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:00.836 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 17.053
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:12:17.891 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:17.891 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:17.891 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:12:17.891 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:12:17.891 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:17.891 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:17.891 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.678
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.004
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:12:18.575 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:18.575 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:18.784 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:18.784 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 3.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:12:21.863 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:21.863 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:12:22.311 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:22.311 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.694
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:15.368
Scenario Outline Check dataset record in ngr voor a1960e70-22f4-4fd9-91a8-b605c6ceda3e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a1960e70-22f4-4fd9-91a8-b605c6ceda3e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.500
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a1960e70-22f4-4fd9-91a8-b605c6ceda3e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:10:43.739 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 riviernetwerk
* print title 0.000
18:10:43.740 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 riviernetwerk
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:10:43.742 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "a1960e70-22f4-4fd9-91a8-b605c6ceda3e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:7.434
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:43.746 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:43.746 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e"
}
> * print "testing xlinkurl: 0.000
18:10:44.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:44.066 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a1960e70-22f4-4fd9-91a8-b605c6ceda3e
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:10:44.376 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:44.376 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:44.577 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:10:44.577 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:44.579 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:44.580 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 4.239
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:10:48.820 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:48.820 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 21.204
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:11:10.025 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:10.025 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 14.043
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:11:24.070 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:24.070 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:24.377 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:11:24.377 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:24.378 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:24.378 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:11:24.659 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:24.660 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.114
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:11:35.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:35.776 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.767
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:36.545 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:36.545 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:36.757 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:36.757 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.226
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:11:42.985 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:42.986 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.976
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:49.964 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:49.964 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.537
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:50.503 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:50.503 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.674
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:41.603
Scenario Outline Check dataset record in ngr voor 110f9ec6-4464-462e-9765-83d90cefbead
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbead' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbead' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:10:58.529 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 vlakken
* print title 0.000
18:10:58.529 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 vlakken
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:10:58.531 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbead" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:50.550
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:10:58.540 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:58.540 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.332
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead"
}
> * print "testing xlinkurl: 0.000
18:10:58.874 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:58.874 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbead
> Given url link 0.000
> When method HEAD 0.323
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:10:59.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:59.200 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:59.474 status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:10:59.474 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:10:59.475 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:10:59.475 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.065
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:05.542 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:05.542 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 4.140
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:09.684 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:09.684 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60
> Given url link 0.000
> When method HEAD 11.122
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:20.808 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:20.808 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 6.045
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:26.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:26.855 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60
> Given url link 0.000
> When method HEAD 21.026
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:47.883 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:47.883 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60
> Given url link 0.000
> When method HEAD 6.998
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:11:54.882 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.882 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 11.172
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:12:06.056 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:06.056 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:06.366 status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:06.368 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:06.369 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.001
18:12:06.373 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:12:06.647 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:06.647 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 8.276
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.001
18:12:14.925 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:14.925 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.669
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:12:15.596 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:15.596 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:15.812 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:15.812 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 32.051
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:12:47.865 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:47.865 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.447
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:12:48.314 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:48.314 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.768
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:22.643
Scenario Outline Check dataset record in ngr voor 110f9ec6-4464-462e-9765-83d90cefbeag
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeag' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.495
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeag' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:12.561 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 lijnen
* print title 0.000
18:11:12.561 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2015 lijnen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:11:12.562 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeag" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 41.074
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.001
18:11:12.567 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:12.568 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.360
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag"
}
> * print "testing xlinkurl: 0.000
18:11:12.929 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:12.930 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeag
> Given url link 0.000
> When method HEAD 0.334
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:11:13.266 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:13.266 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:11:13.467 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:13.467 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:11:13.468 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:11:13.469 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.002
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:19.473 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.473 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 13.159
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:32.634 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:32.634 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 2.263
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:11:34.899 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:34.899 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 5.073
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:11:39.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:39.975 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:40.284 status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:11:40.284 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:40.285 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:40.285 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:11:40.558 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:40.558 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.054
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:11:51.615 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.615 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:51.615 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:11:51.615 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:11:51.615 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:11:51.616 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.616 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.672
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:52.289 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.289 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:11:52.498 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.499 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:11:52.947 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.947 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:47.313
Scenario Outline Check dataset record in ngr voor 891ddc2d-8949-4a45-be96-c65b87c41f13
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '891ddc2d-8949-4a45-be96-c65b87c41f13' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '891ddc2d-8949-4a45-be96-c65b87c41f13' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:17.090 [print] title:Kaderrichtlijn Water - Monitoringlocaties Nederland EU2015
* print title 0.000
18:11:17.090 [print] Kaderrichtlijn Water - Monitoringlocaties Nederland EU2015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:11:17.091 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ef",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "891ddc2d-8949-4a45-be96-c65b87c41f13" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 53.399
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ef}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:17.096 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:17.096 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.304
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13"
}
> * print "testing xlinkurl: 0.000
18:11:17.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:17.401 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/891ddc2d-8949-4a45-be96-c65b87c41f13
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
18:11:17.715 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:17.715 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:11:17.917 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:17.917 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:11:17.917 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:17.917 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.025
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:11:23.944 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:23.945 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MonitoringStations-dir-2000-60
> Given url link 0.000
> When method HEAD 5.999
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:11:29.945 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:29.946 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 21.091
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.001
18:11:51.040 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.040 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:51.352 status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:11:51.352 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:51.353 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.353 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:11:51.628 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.629 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 5.759
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd"
}
> * print "testing xlinkurl: 0.000
18:11:57.389 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:57.390 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ef"
}
> * print "testing xlinkurl: 0.000
18:11:57.599 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:57.599 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ef
> Given url link 0.000
> When method HEAD 3.181
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:00.782 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:00.783 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.113
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:12:06.897 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:06.897 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.612
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:12:07.512 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:07.512 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 2.980
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:15.818
Scenario Outline Check dataset record in ngr voor ror-9d8e-4758-83fx-28b057f185e1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185e1' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185e1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:18.430 [print] title:Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 vlakken
* print title 0.000
18:11:18.430 [print] Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 vlakken
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:11:18.433 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/nz",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "ror-9d8e-4758-83fx-28b057f185e1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:7.640
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:18.437 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:18.437 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1"
}
> * print "testing xlinkurl: 0.000
18:11:18.746 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:18.746 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185e1
> Given url link 0.000
> When method HEAD 0.333
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
18:11:19.080 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.080 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.202
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
18:11:19.283 status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:19.283 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 202, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
18:11:19.284 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.284 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 7.954
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:11:27.240 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:27.240 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60
> Given url link 0.000
> When method HEAD 0.688
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:11:27.930 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:27.930 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 17.122
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:11:45.055 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:45.055 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:45.362 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:11:45.363 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:11:45.364 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:45.364 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:11:45.638 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:45.638 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 32.085
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:12:17.724 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:17.724 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:17.725 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:12:17.725 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd"
}
> * print "testing xlinkurl: 0.000
18:12:17.725 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:17.726 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:17.726 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd
> Given url link 0.000
> When method HEAD 0.216
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:12:17.943 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:17.943 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.674
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:18.618 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:18.619 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.174
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:12:24.794 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:24.794 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.510
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:12:25.306 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:25.306 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.769
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4:5.075
Scenario Outline Check dataset record in ngr voor ror-9d8e-4758-83fx-28b057f185g1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185g1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.529
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185g1' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:18.693 [print] title:Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 lijnen
* print title 0.000
18:11:18.693 [print] Richtlijn Overstromingsrisico - gebieden met Potentieel Significant Overstromingsrisico EU2018 lijnen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:11:18.697 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/nz",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "ror-9d8e-4758-83fx-28b057f185g1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2:2.273
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60465, url: http://inspire.ec.europa.eu/theme#, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:18.701 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:18.702 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1"
}
> * print "testing xlinkurl: 0.000
18:11:19.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.001 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185g1
> Given url link 0.000
> When method HEAD 0.339
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
18:11:19.341 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.342 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
18:11:19.543 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:19.545 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
18:11:19.546 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:19.546 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 1:0.674
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60465, url: http://inspire.ec.europa.eu/theme#, response: 
18:12:20.221 status code was: 502, expected: 200, response time: 60465, url: http://inspire.ec.europa.eu/theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:12:20.221 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60465, url: http://inspire.ec.europa.eu/theme#, response: 
18:12:20.222 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:20.222 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60
> Given url link 0.000
> When method HEAD 19.076
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:12:39.300 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:39.300 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 11.227
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:12:50.528 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:50.529 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:50.838 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:50.838 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:50.839 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:50.839 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:12:51.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:51.114 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 21.125
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:12.240 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:12.241 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:12.241 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:12.241 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:12.241 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:12.241 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:12.242 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:13:12.457 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:12.457 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.739
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:13.198 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:13.198 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.401
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:13:19.601 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:19.601 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.583
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:20.187 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:20.187 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.784
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:37.093
Scenario Outline Check dataset record in ngr voor a9b7026e-0a81-4813-93bd-ba49e6f28502
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a9b7026e-0a81-4813-93bd-ba49e6f28502' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a9b7026e-0a81-4813-93bd-ba49e6f28502' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:51.694 [print] title:NWB - Wegen
* print title 0.000
18:11:51.694 [print] NWB - Wegen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:11:51.696 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineation-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/tn/4.0/CommonTransportElements.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/tn",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "a9b7026e-0a81-4813-93bd-ba49e6f28502" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:48.292
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineation-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/tn/4.0/CommonTransportElements.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/tn}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 285, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 436, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60464, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:51.700 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:51.701 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.428
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502"
}
> * print "testing xlinkurl: 0.000
18:11:52.130 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.130 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a9b7026e-0a81-4813-93bd-ba49e6f28502
> Given url link 0.000
> When method HEAD 0.318
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
18:11:52.449 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.450 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.284
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 285, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:11:52.735 status code was: 404, expected: 200, response time: 285, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:11:52.735 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 285, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:11:52.736 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.736 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:11:52.938 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:52.938 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:11:52.939 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:52.940 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 16.087
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineation-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:12:09.028 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:09.028 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineation-dir-2002-49
> Given url link 0.000
> When method HEAD 7.080
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:12:16.109 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:16.109 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 11.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:12:27.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:27.188 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.436
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 436, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:27.624 status code was: 500, expected: 200, response time: 436, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:27.625 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 436, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:12:27.625 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:27.625 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:12:27.902 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:27.903 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.689
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:12:28.593 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:28.594 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:28.594 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:12:28.594 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/tn/4.0/CommonTransportElements.xsd"
}
> * print "testing xlinkurl: 0.000
18:12:28.594 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:28.595 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:28.595 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/tn/4.0/CommonTransportElements.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/tn"
}
> * print "testing xlinkurl: 0.000
18:12:28.803 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:28.803 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/tn
> Given url link 0.000
> When method HEAD 2.878
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:31.683 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:31.684 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 4.057
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:35.743 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:35.743 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1:0.670
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60464, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:13:36.413 status code was: 502, expected: 200, response time: 60464, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:13:36.413 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60464, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:13:36.414 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:36.414 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.447
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:36.863 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:13:36.865 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 3.124
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:54.846
Scenario Outline Check dataset record in ngr voor 110f9ec6-4464-462e-9765-83d90cefbeab
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeab' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.554
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeab' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:53.877 [print] title:Kaderrichtlijn Water - Stroomgebieddistricten Nederland EU2015
* print title 0.000
18:11:53.877 [print] Kaderrichtlijn Water - Stroomgebieddistricten Nederland EU2015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:11:53.879 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeab" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:27.147
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:53.882 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:53.882 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.302
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab"
}
> * print "testing xlinkurl: 0.000
18:11:54.186 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.186 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/10f9ec6-4464-462e-9765-83d90cefbeab
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:11:54.497 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.497 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:11:54.698 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:54.698 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:11:54.698 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.699 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 14.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:12:08.767 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:08.767 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60
> Given url link 0.000
> When method HEAD 16.253
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:12:25.021 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:25.021 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60
> Given url link 0.000
> When method HEAD 23.559
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:12:48.582 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:48.583 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 23.374
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:11.958 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:11.958 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:12.265 status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:12.265 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:12.268 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:12.269 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:12.543 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:12.543 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.367
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:14.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:14.911 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:14.911 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:14.911 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:13:14.911 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:14.912 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:14.912 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.770
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:15.683 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.683 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:15.896 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.896 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 0.681
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:16.578 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:16.579 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 3.999
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:13:20.579 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:20.579 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4:7.945
Scenario Outline Check dataset record in ngr voor 2e31680f-68b5-4ff3-94a4-9c24109ffd5e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '2e31680f-68b5-4ff3-94a4-9c24109ffd5e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.579
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '2e31680f-68b5-4ff3-94a4-9c24109ffd5e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:54.221 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 vlakken
* print title 0.000
18:11:54.221 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland 2019 vlakken
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:11:54.223 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "2e31680f-68b5-4ff3-94a4-9c24109ffd5e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2:3.684
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:54.226 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.226 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.302
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e"
}
> * print "testing xlinkurl: 0.000
18:11:54.530 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.530 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/2e31680f-68b5-4ff3-94a4-9c24109ffd5e
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:11:54.842 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:54.842 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:11:55.043 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:55.044 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:11:55.044 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:55.045 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 31.761
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:12:26.806 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:26.807 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 17.714
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:12:44.522 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:44.522 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60
> Given url link 0.000
> When method HEAD 9.124
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:12:53.648 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:53.648 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 2.035
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:12:55.685 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:55.685 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60
> Given url link 0.000
> When method HEAD 9.084
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:13:04.771 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:04.772 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60
> Given url link 0.000
> When method HEAD 11.187
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:13:15.960 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:15.960 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 16.113
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:32.075 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:32.075 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.313
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:32.389 status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:32.389 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 313, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:32.390 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:32.391 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:32.666 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:32.667 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 17.123
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:49.791 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.792 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:49.792 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:49.792 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:13:49.792 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:49.792 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.792 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.671
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:50.465 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:50.465 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:50.677 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:50.677 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.093
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:13:56.772 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:56.772 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.443
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:57.217 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:57.217 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.691
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:21.771
Scenario Outline Check dataset record in ngr voor 710c381c-ab2d-45d5-a45d-af2eba811e5f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '710c381c-ab2d-45d5-a45d-af2eba811e5f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '710c381c-ab2d-45d5-a45d-af2eba811e5f' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:11:55.105 [print] title:Nationaal Hydrologisch Instrumentarium (NHI) - netwerkschematisatie
* print title 0.000
18:11:55.105 [print] Nationaal Hydrologisch Instrumentarium (NHI) - netwerkschematisatie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:11:55.108 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "710c381c-ab2d-45d5-a45d-af2eba811e5f" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 40.616
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/8}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:11:55.115 [print]
> * def link = __arg.link 0.003
> * print "testing xlinkurl:" + link 0.000
18:11:55.119 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f"
}
> * print "testing xlinkurl: 0.000
18:11:55.430 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:55.431 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/710c381c-ab2d-45d5-a45d-af2eba811e5f
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"
}
> * print "testing xlinkurl: 0.000
18:11:55.745 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:55.745 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/8
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
18:11:55.945 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:11:55.945 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
18:11:55.945 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:11:55.946 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.649
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:02.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:02.597 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:12:02.872 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:02.872 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.036
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:12:11.910 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:11.910 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:11.910 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:12:11.910 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd"
}
> * print "testing xlinkurl: 0.000
18:12:11.910 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:11.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:11.911 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:12.120 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:12.120 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.129
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:23.251 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:23.251 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.254
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:12:34.507 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:34.507 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.443
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:12:34.952 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:34.952 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.774
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:47.452
Scenario Outline Check dataset record in ngr voor krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw-f7bb2351-9788-42ea-a58b-a5ee1842304e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.552
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw-f7bb2351-9788-42ea-a58b-a5ee1842304e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:12:11.049 [print] title:Kaderrichtlijn Water - Stroomgebieddistricten Nederland 2019 vlakken
* print title 0.000
18:12:11.049 [print] Kaderrichtlijn Water - Stroomgebieddistricten Nederland 2019 vlakken
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:12:11.051 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "krw-f7bb2351-9788-42ea-a58b-a5ee1842304e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:53.452
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:12:11.054 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:11.054 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.363
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e"
}
> * print "testing xlinkurl: 0.000
18:12:11.419 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:11.420 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-f7bb2351-9788-42ea-a58b-a5ee1842304e
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:12:11.733 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:11.733 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:12:11.933 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:12:11.934 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:12:11.935 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:11.935 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 7.113
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:12:19.050 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:19.050 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistricts-dir-2000-60
> Given url link 0.000
> When method HEAD 31.755
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:12:50.806 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:50.806 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60
> Given url link 0.000
> When method HEAD 46.788
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:13:37.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:37.597 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 11.269
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:48.868 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:48.868 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:49.176 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:49.176 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:49.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.177 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:49.451 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.451 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.989
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:56.442 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:56.442 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:56.442 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:56.442 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:13:56.442 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:56.443 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:56.443 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.680
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:57.124 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:57.124 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:57.333 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:57.333 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.027
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:03.361 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:14:03.362 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.452
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:14:03.816 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:03.817 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.686
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:57.644
Scenario Outline Check dataset record in ngr voor 4783ea4f-6b8c-4600-8af0-516f3556cfe9
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4783ea4f-6b8c-4600-8af0-516f3556cfe9' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.589
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4783ea4f-6b8c-4600-8af0-516f3556cfe9' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:12:23.599 [print] title:Kaderrichtlijn Water - Register Beschermd Gebied - Schelpdierwater 2008
* print title 0.000
18:12:23.599 [print] Kaderrichtlijn Water - Register Beschermd Gebied - Schelpdierwater 2008
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:12:23.600 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "",
  "",
  "",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "4783ea4f-6b8c-4600-8af0-516f3556cfe9" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 58.528
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=}, {link=}, {link=}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:12:23.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:23.604 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.367
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9"
}
> * print "testing xlinkurl: 0.000
18:12:23.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:23.973 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/4783ea4f-6b8c-4600-8af0-516f3556cfe9
> Given url link 0.000
> When method HEAD 0.458
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:12:24.432 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:24.432 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:12:24.706 status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:12:24.707 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 274, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:12:24.708 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:24.708 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 9.249
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:33.958 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:33.958 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:12:34.232 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:34.232 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:12:34.233 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:12:34.233 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:12:34.233 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:12:34.233 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:34.233 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:12:34.234 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:12:34.234 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:12:34.234 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:12:34.234 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:34.234 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.010
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:12:34.234 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:12:34.245 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:12:34.245 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:12:34.247 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:34.248 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.079
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:12:40.329 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:40.329 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:40.329 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:12:40.329 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:12:40.329 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:12:40.330 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:40.330 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.691
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:12:41.023 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:41.023 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.211
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:12:41.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:41.236 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 39.682
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:13:20.920 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:20.920 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.543
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:21.464 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.464 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.665
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
7:20.770
Scenario Outline Check dataset record in ngr voor eu-2c7040b-c448-451b-bf15-f2416ecaadd1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-2c7040b-c448-451b-bf15-f2416ecaadd1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-2c7040b-c448-451b-bf15-f2416ecaadd1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:12:26.596 [print] title:Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd) - WT
* print title 0.000
18:12:26.596 [print] Vervoersnetwerken - Waterwegen (INSPIRE geharmoniseerd) - WT
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:12:26.600 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/tn",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "eu-2c7040b-c448-451b-bf15-f2416ecaadd1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3:40.128
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/tn}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60478, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60480, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:12:26.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:26.605 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1"
}
> * print "testing xlinkurl: 0.000
18:12:26.913 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:26.914 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-2c7040b-c448-451b-bf15-f2416ecaadd1
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
18:12:27.226 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
18:12:27.228 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:12:27.428 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:12:27.429 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:12:27.429 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:27.430 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.018
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:12:33.449 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:33.449 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:12:33.723 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:33.723 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.684
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60478, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:13:34.408 status code was: 502, expected: 200, response time: 60478, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:34.408 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60478, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:13:34.409 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:34.409 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:34.409 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:34.409 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:34.409 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:34.410 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:34.410 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/tn"
}
> * print "testing xlinkurl: 0.000
18:13:34.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:34.620 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/tn
> Given url link 0.000
> When method HEAD 0.774
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:35.395 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:35.396 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1:0.690
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60480, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:14:36.086 status code was: 502, expected: 200, response time: 60480, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:36.086 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60480, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:14:36.087 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:36.087 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 22.344
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:58.432 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:58.432 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.938
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:20.371 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:20.371 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.046
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:26.419 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:26.419 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.035
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:32.456 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:32.456 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.024
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:34.482 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:34.482 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.012
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:40.495 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:40.495 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.013
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:46.509 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:46.510 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:52.540 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:52.540 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.990
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:58.532 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:58.532 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 7.038
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:16:05.572 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:05.572 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.473
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:16:06.047 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:06.047 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.681
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:7.790
Scenario Outline Check dataset record in ngr voor uwwtd-9d8e-4758-83fa-28b057f185e3
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e3' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.518
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e3' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:12:36.250 [print] title:Richtlijn Stedelijk Afvalwater - rioolwaterzuiveringsinstallaties Nederland EU2015
* print title 0.000
18:12:36.250 [print] Richtlijn Stedelijk Afvalwater - rioolwaterzuiveringsinstallaties Nederland EU2015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:12:36.254 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/UrbanWasteWaterTreatmentPlants-dir-1991-271",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e3" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:33.635
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/UrbanWasteWaterTreatmentPlants-dir-1991-271}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:12:36.258 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:36.258 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.584
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3"
}
> * print "testing xlinkurl: 0.000
18:12:36.844 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:36.845 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e3
> Given url link 0.000
> When method HEAD 0.324
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:12:37.171 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:37.171 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:12:37.371 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:12:37.371 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:12:37.373 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:37.373 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 13.232
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/UrbanWasteWaterTreatmentPlants-dir-1991-271"
}
> * print "testing xlinkurl: 0.000
18:12:50.606 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:50.606 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/UrbanWasteWaterTreatmentPlants-dir-1991-271
> Given url link 0.000
> When method HEAD 16.094
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:13:06.702 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:06.702 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 18.306
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:25.010 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:25.010 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:25.322 status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:25.322 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:25.323 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:25.323 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:25.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:25.597 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 39.099
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:14:04.698 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:04.698 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:14:04.699 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:14:04.699 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:14:04.699 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:14:04.699 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:04.699 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.669
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:14:05.370 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.370 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:05.579 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.579 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.989
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:08.570 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:08.571 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.533
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:14:09.106 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:09.106 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.784
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:28.805
Scenario Outline Check dataset record in ngr voor eu-cb527d-f6db-4835-b0cd-deb245241254
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-cb527d-f6db-4835-b0cd-deb245241254' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-cb527d-f6db-4835-b0cd-deb245241254' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:12:49.625 [print] title:Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd) - RWS
* print title 0.000
18:12:49.626 [print] Vervoersnetwerken - Wegen (INSPIRE geharmoniseerd) - RWS
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:12:49.627 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/tn-ro/4.0/RoadTransportNetwork.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/tn",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "eu-cb527d-f6db-4835-b0cd-deb245241254" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:44.135
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/tn-ro/4.0/RoadTransportNetwork.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/tn}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 433, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:12:49.630 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:49.630 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.354
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254"
}
> * print "testing xlinkurl: 0.000
18:12:49.986 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:49.987 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-cb527d-f6db-4835-b0cd-deb245241254
> Given url link 0.000
> When method HEAD 0.358
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
18:12:50.346 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:50.347 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:12:50.547 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:12:50.548 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:12:50.548 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:12:50.549 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 10.027
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:13:00.578 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:00.578 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 0.639
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 433, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
18:13:01.218 status code was: 404, expected: 200, response time: 433, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:13:01.218 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 433, url: http://inspire.ec.europa.eu/metadata-codelist/Prioritydataset/SurfaceWaterBodies-dir-2000-60, response: 
18:13:01.219 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:01.219 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 0.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:01.903 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:01.904 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:02.212 status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:02.212 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:02.213 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:02.213 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:02.489 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:02.490 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.007
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/tn-ro/4.0/RoadTransportNetwork.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:08.498 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:08.499 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/tn-ro/4.0/RoadTransportNetwork.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/tn"
}
> * print "testing xlinkurl: 0.000
18:13:08.714 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:08.715 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/tn
> Given url link 0.000
> When method HEAD 0.673
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:09.389 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:09.389 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 7.700
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:17.091 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:17.091 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 26.097
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:43.189 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:43.189 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 16.045
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:59.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.237 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 27.127
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:26.366 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:26.366 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:32.445 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:32.445 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.553
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.001
18:14:33.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:33.002 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.761
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
57.618
Scenario Outline Check dataset record in ngr voor uwwtd-9d8e-4758-83fa-28b057f185e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:20.482 [print] title:Richtlijn Stedelijk Afvalwater - lozingspunten Nederland EU2015
* print title 0.000
18:13:20.482 [print] Richtlijn Stedelijk Afvalwater - lozingspunten Nederland EU2015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.002
18:13:20.486 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DischargePointsToReceivingWaters-dir-1991-271",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e2" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 28.555
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DischargePointsToReceivingWaters-dir-1991-271}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 343, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:13:20.490 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:20.490 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.364
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2"
}
> * print "testing xlinkurl: 0.000
18:13:20.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:20.856 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e2
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:13:21.169 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.169 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.302
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:13:21.471 status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:13:21.472 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:13:21.473 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.474 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.004
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DischargePointsToReceivingWaters-dir-1991-271"
}
> * print "testing xlinkurl: 0.000
18:13:27.480 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:27.480 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/DischargePointsToReceivingWaters-dir-1991-271
> Given url link 0.000
> When method HEAD 1.982
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:13:29.464 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:29.464 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 7.052
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:36.518 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:36.518 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.343
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 343, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:36.863 status code was: 500, expected: 200, response time: 343, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:36.865 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 343, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:36.865 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:36.866 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:37.142 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:37.143 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.164
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:43.308 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:43.308 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:43.308 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:43.308 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.011
18:13:43.308 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:43.320 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:43.320 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.685
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:44.007 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:44.007 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.210
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:44.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:44.219 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 3.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:13:47.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:47.911 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:48.354 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:48.355 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:41.725
Scenario Outline Check dataset record in ngr voor uwwtd-9d8e-4758-83fa-28b057f185e1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'uwwtd-9d8e-4758-83fa-28b057f185e1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'uwwtd-9d8e-4758-83fa-28b057f185e1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:21.525 [print] title:Richtlijn Stedelijk Afvalwater - agglomeraties Nederland EU2015
* print title 0.000
18:13:21.525 [print] Richtlijn Stedelijk Afvalwater - agglomeraties Nederland EU2015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:13:21.526 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Agglomerations-dir-1991-271",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "uwwtd-9d8e-4758-83fa-28b057f185e1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 50.589
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Agglomerations-dir-1991-271}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:13:21.529 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.529 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1"
}
> * print "testing xlinkurl: 0.000
18:13:21.830 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.830 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/uwwtd-9d8e-4758-83fa-28b057f185e1
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:13:22.144 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:22.144 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:13:22.344 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:13:22.344 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:13:22.344 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:22.345 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 12.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Agglomerations-dir-1991-271"
}
> * print "testing xlinkurl: 0.000
18:13:34.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:34.513 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Agglomerations-dir-1991-271
> Given url link 0.000
> When method HEAD 6.086
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:13:40.601 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:40.601 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 6.093
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:13:46.695 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:46.695 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.306
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:47.003 status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:47.005 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:13:47.007 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:47.008 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:47.282 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:47.282 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.688
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:48.972 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:48.972 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:48.972 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:48.972 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:13:48.972 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:48.973 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:48.973 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.669
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:49.643 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.643 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:49.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.853 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.010
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:10.865 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.865 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.574
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:14:11.441 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:11.441 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
34.900
Scenario Outline Check dataset record in ngr voor be1b1514-8d1f-48e1-9624-fee9b784138b
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'be1b1514-8d1f-48e1-9624-fee9b784138b' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.506
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be1b1514-8d1f-48e1-9624-fee9b784138b' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:21.537 [print] title:Vaarwegmarkeringen Nederland
* print title 0.000
18:13:21.537 [print] Vaarwegmarkeringen Nederland
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:13:21.541 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/tn",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "be1b1514-8d1f-48e1-9624-fee9b784138b" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.196
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/7}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/tn}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:13:21.543 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.543 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.289
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b"
}
> * print "testing xlinkurl: 0.000
18:13:21.834 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:21.834 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/be1b1514-8d1f-48e1-9624-fee9b784138b
> Given url link 0.000
> When method HEAD 0.350
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"
}
> * print "testing xlinkurl: 0.000
18:13:22.185 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:22.185 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/7
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:13:22.385 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:13:22.385 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/7"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/7, response: 
18:13:22.385 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:22.386 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 3.697
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:13:26.085 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:26.085 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:26.361 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:26.361 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.691
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:13:27.054 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:27.054 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:27.054 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:13:27.054 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd"
}
> * print "testing xlinkurl: 0.000
18:13:27.055 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:13:27.055 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:13:27.057 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/tn-w/4.0/WaterTransportNetwork.xsd
> Given url link 0.000
> When method HEAD 0.215
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/tn"
}
> * print "testing xlinkurl: 0.000
18:13:27.273 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:27.274 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/tn
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.001
18:13:27.952 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:27.952 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 3.696
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:13:31.651 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:31.651 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:13:37.965 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:37.965 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.772
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:2.140
Scenario Outline Check dataset record in ngr voor 1a40eb6f-4f33-4e15-a0b1-2d350ad2636e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1a40eb6f-4f33-4e15-a0b1-2d350ad2636e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.539
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1a40eb6f-4f33-4e15-a0b1-2d350ad2636e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:22.673 [print] title:Geografische Namen (INSPIRE geharmoniseerd)
* print title 0.000
18:13:22.673 [print] Geografische Namen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:13:22.675 [print] [
  "http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "1a40eb6f-4f33-4e15-a0b1-2d350ad2636e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:0.798
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60471, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:14:23.475 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60471, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"
}
> * print "testing xlinkurl: 0.000
18:13:22.679 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:22.679 [print] testing xlinkurl:http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e
> Given url link 0.000
> When method HEAD 0.037
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:13:22.717 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 37 milliseconds for URL: http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e
18:13:22.717 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:13:22.717 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/3bf3f7f3-8ac9-4203-bb95-2c932d5f0f3e"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:13:22.718 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:22.718 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.071
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.003
18:13:22.793 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:13:22.794 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.680
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60471, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:14:23.475 status code was: 502, expected: 200, response time: 60471, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.817
Scenario Outline Check dataset record in ngr voor 36a7e8cb-8300-4602-93d2-135943365a6f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '36a7e8cb-8300-4602-93d2-135943365a6f' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.578
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '36a7e8cb-8300-4602-93d2-135943365a6f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:39.320 [print] title:Monitoring stations (Nitraatrichtlijn) diepe filters
* print title 0.000
18:13:39.320 [print] Monitoring stations (Nitraatrichtlijn) diepe filters
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:13:39.322 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "36a7e8cb-8300-4602-93d2-135943365a6f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.618
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:13:39.325 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:39.325 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.808
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"
}
> * print "testing xlinkurl: 0.000
18:13:40.135 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:40.135 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f
> Given url link 0.000
> When method HEAD 0.358
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:13:40.494 javax.net.ssl.SSLException: Connection reset, http call failed after 359 milliseconds for URL: https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f
18:13:40.494 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.001
18:13:40.494 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#36a7e8cb-8300-4602-93d2-135943365a6f"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:13:40.496 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:40.496 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.666
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:41.164 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:41.164 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.776
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.816
Scenario Outline Check dataset record in ngr voor 9dd9bf30-36e6-45ae-b368-bdef2720bdde
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9dd9bf30-36e6-45ae-b368-bdef2720bdde' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.554
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9dd9bf30-36e6-45ae-b368-bdef2720bdde' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:42.499 [print] title:Bodemkundig boormonsterprofiel onder INSPIRE
* print title 0.000
18:13:42.499 [print] Bodemkundig boormonsterprofiel onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:13:42.500 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "9dd9bf30-36e6-45ae-b368-bdef2720bdde" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.630
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/16}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 415, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 416, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"
}
> * print "testing xlinkurl: 0.000
18:13:42.504 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:42.504 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd
> Given url link 0.000
> When method HEAD 0.278
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
18:13:42.782 status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"
}
> * print "testing xlinkurl: 0.000
18:13:42.782 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resourcese26eb6c9-c441-43e8-8db6-aabbf11578fd, response: 
18:13:42.783 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:42.783 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/16
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
18:13:42.983 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
18:13:42.983 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/16"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/16, response: 
18:13:42.984 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:42.984 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.708
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 415, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:13:43.693 status code was: 404, expected: 200, response time: 415, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:13:43.693 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 415, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:13:43.694 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:43.694 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.416
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 416, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:13:44.110 status code was: 500, expected: 200, response time: 416, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:44.111 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 416, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:13:44.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:44.111 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.019
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
17.767
Scenario Outline Check dataset record in ngr voor 64ff8561-5c56-4cc1-ae0e-94366fb70b7e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '64ff8561-5c56-4cc1-ae0e-94366fb70b7e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.514
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '64ff8561-5c56-4cc1-ae0e-94366fb70b7e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:49.561 [print] title:Luchtfoto 2019 25cm RGB open data
* print title 0.000
18:13:49.562 [print] Luchtfoto 2019 25cm RGB open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:13:49.565 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b023",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "64ff8561-5c56-4cc1-ae0e-94366fb70b7e" 0.010
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 8.620
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b023}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:13:58.195 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"
}
> * print "testing xlinkurl: 0.000
18:13:49.578 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.578 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b023
> Given url link 0.000
> When method HEAD 0.040
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:13:49.618 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 39 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b023
18:13:49.619 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:13:49.619 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b023"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:13:49.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:49.620 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.992
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:13:50.614 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:50.614 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.126
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:50.742 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:50.742 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.024
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:13:57.767 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:57.767 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.423
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:13:58.192 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:58.192 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:13:58.193 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:13:58.193 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:13:58.193 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:13:58.194 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:58.194 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:13:58.194 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:13:58.194 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:13:58.194 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:13:58.195 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:58.195 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:13:58.195 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:13:58.195 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
16.006
Scenario Outline Check dataset record in ngr voor 5c37d29a-006d-4136-8989-adfc35a1d4a7
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5c37d29a-006d-4136-8989-adfc35a1d4a7' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.503
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5c37d29a-006d-4136-8989-adfc35a1d4a7' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:55.639 [print] title:Wijk- en Buurtkaart 2019 versie 1
* print title 0.000
18:13:55.640 [print] Wijk- en Buurtkaart 2019 versie 1
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:13:55.643 [print] [
  "https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2019",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc5023",
  ""
]
* def id = "5c37d29a-006d-4136-8989-adfc35a1d4a7" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.749
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2019}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc5023}, {link=}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:03.393 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2019"
}
> * print "testing xlinkurl: 0.000
18:13:55.646 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:55.647 [print] testing xlinkurl:https://www.cbs.nl/nl-nl/dossier/nederland-regionaal/geografische-data/wijk-en-buurtkaart-2019
> Given url link 0.000
> When method HEAD 0.430
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd"
}
> * print "testing xlinkurl: 0.000
18:13:56.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:56.079 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:13:56.760 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:56.760 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.067
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:56.828 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:56.828 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc5023"
}
> * print "testing xlinkurl: 0.000
18:14:02.858 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:02.858 [print] testing xlinkurl:https://tools.ietf.org/html/rfc5023
> Given url link 0.000
> When method HEAD 0.531
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:03.390 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:03.391 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:03.392 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:03.392 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
21.630
Scenario Outline Check dataset record in ngr voor E7D9F0D6-2B8D-6699-F26E-4A781228F2DD
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'E7D9F0D6-2B8D-6699-F26E-4A781228F2DD' 0.014
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'E7D9F0D6-2B8D-6699-F26E-4A781228F2DD' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:58.437 [print] title:BRO REGIS II Hydrogeologisch model (HGM)
* print title 0.000
18:13:58.437 [print] BRO REGIS II Hydrogeologisch model (HGM)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:13:58.438 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/NAP",
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "E7D9F0D6-2B8D-6699-F26E-4A781228F2DD" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 10.551
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/NAP}, {link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 326, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/NAP"
}
> * print "testing xlinkurl: 0.000
18:13:58.442 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:58.442 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/NAP
> Given url link 0.000
> When method HEAD 0.346
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
18:13:58.789 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:58.790 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.326
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 326, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
18:13:59.117 status code was: 404, expected: 200, response time: 326, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge"
}
> * print "testing xlinkurl: 0.000
18:13:59.117 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 326, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesd72ddff0-2724-11e2-81c1-0800200c9a66, response: 
18:13:59.118 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.118 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ge
> Given url link 0.000
> When method HEAD 0.698
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:13:59.818 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.818 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.059
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:13:59.879 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:13:59.881 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.109
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.078
Scenario Outline Check dataset record in ngr voor F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.532
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:58.732 [print] title:BRO Digital Geological Model (DGM)
* print title 0.000
18:13:58.733 [print] BRO Digital Geological Model (DGM)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:13:58.734 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "F646DFB9-5BF6-EAB9-042B-CAB6FF2DC275" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.271
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 378, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"
}
> * print "testing xlinkurl: 0.000
18:13:58.738 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:58.739 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66
> Given url link 0.000
> When method HEAD 0.377
> Then status 200 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 378, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
18:13:59.120 status code was: 404, expected: 200, response time: 378, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
18:13:59.122 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 378, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resourcesc7a15080-2724-11e2-81c1-0800200c9a66, response: 
18:13:59.123 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.123 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
18:13:59.399 status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"
}
> * print "testing xlinkurl: 0.000
18:13:59.399 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
18:13:59.400 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.400 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/#
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
18:13:59.601 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:13:59.603 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/#, response: 
18:13:59.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.604 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:13:59.913 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:13:59.913 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:13:59.914 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.914 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.069
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:13:59.984 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:13:59.985 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.022
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.347
Scenario Outline Check dataset record in ngr voor edf79e6a-d73d-4def-8d22-0f495cc76a73
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.344
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'edf79e6a-d73d-4def-8d22-0f495cc76a73' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:13:58.868 [print] title:Bronbestanden waterkwaliteit
* print title 0.000
18:13:58.868 [print] Bronbestanden waterkwaliteit
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:37 - xpath does not exist: /GetRecordByIdResponse//@href on response
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
* def id = "edf79e6a-d73d-4def-8d22-0f495cc76a73" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.000
26.326
Scenario Outline Check dataset record in ngr voor 493ab81b-75f8-4205-b030-6b2fd9eb4295
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '493ab81b-75f8-4205-b030-6b2fd9eb4295' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.510
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '493ab81b-75f8-4205-b030-6b2fd9eb4295' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:03.908 [print] title:INSPIRE geharmoniseerde Beschermde Gebieden - Cultuur Historie
* print title 0.000
18:14:03.908 [print] INSPIRE geharmoniseerde Beschermde Gebieden - Cultuur Historie
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:03.910 [print] [
  "https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps",
  "http://creativecommons.org/licenses/by/3.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "493ab81b-75f8-4205-b030-6b2fd9eb4295" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.906
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps}, {link=http://creativecommons.org/licenses/by/3.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 794, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"
}
> * print "testing xlinkurl: 0.000
18:14:03.913 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:03.914 [print] testing xlinkurl:https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip
> Given url link 0.000
> When method HEAD 0.794
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 794, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
18:14:04.708 status code was: 404, expected: 200, response time: 794, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps"
}
> * print "testing xlinkurl: 0.000
18:14:04.708 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 794, url: https://monumentenregister.cultureelerfgoed.nl/sites/default/files/MRS/mrs-inspire.zip, response: 
18:14:04.709 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:04.709 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps
> Given url link 0.000
> When method HEAD 0.681
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/3.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:05.391 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.391 [print] testing xlinkurl:http://creativecommons.org/licenses/by/3.0/deed.nl
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:05.558 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.558 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.258
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:0.689
Scenario Outline Check dataset record in ngr voor 58e7dc38-a498-4852-b4ef-908f5baa9056
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '58e7dc38-a498-4852-b4ef-908f5baa9056' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58e7dc38-a498-4852-b4ef-908f5baa9056' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:05.039 [print] title:Begrenzingen van vergunde ontgrondingsgebieden voor zand- en grindwinning
* print title 0.003
18:14:05.042 [print] Begrenzingen van vergunde ontgrondingsgebieden voor zand- en grindwinning
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:05.043 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/am"
]
* def id = "58e7dc38-a498-4852-b4ef-908f5baa9056" 0.005
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 30.076
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/am}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:14:05.050 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.051 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.290
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056"
}
> * print "testing xlinkurl: 0.000
18:14:05.343 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.343 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=58e7dc38-a498-4852-b4ef-908f5baa9056
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:05.787 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.787 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.036
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:05.823 status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:05.824 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 36, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:05.824 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:05.825 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 3.697
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:14:09.523 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:09.523 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.210
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:14:09.735 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:09.735 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.696
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:14:10.432 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.433 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.225
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:14:10.659 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.659 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.164
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.002
18:14:10.828 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.828 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.094
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:14:16.924 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:16.924 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:17.092 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:17.092 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.157
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:14:23.251 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:23.252 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:23.419 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:23.419 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.031
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:34.451 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:34.452 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:34.452 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:34.452 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:14:34.452 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:34.452 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:34.452 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.672
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:20.926
Scenario Outline Check dataset record in ngr voor 3387ef8a-9237-453a-aa4e-585d1e193550
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3387ef8a-9237-453a-aa4e-585d1e193550' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.547
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3387ef8a-9237-453a-aa4e-585d1e193550' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:10.442 [print] title:Nationaal Beschermde Gebieden (CDDA) (INSPIRE geharmoniseerd)
* print title 0.000
18:14:10.442 [print] Nationaal Beschermde Gebieden (CDDA) (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:10.444 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/NationallyDesignatedAreasCDDA",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "3387ef8a-9237-453a-aa4e-585d1e193550" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:10.187
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/NationallyDesignatedAreasCDDA}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60483, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:15:20.633 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60483, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550"
}
> * print "testing xlinkurl: 0.000
18:14:10.448 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.448 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/3387ef8a-9237-453a-aa4e-585d1e193550
> Given url link 0.000
> When method HEAD 0.319
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps"
}
> * print "testing xlinkurl: 0.000
18:14:10.768 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.768 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/NationallyDesignatedAreasCDDA"
}
> * print "testing xlinkurl: 0.000
18:14:11.449 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:11.449 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/NationallyDesignatedAreasCDDA
> Given url link 0.000
> When method HEAD 8.447
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:19.897 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:19.898 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.038
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:19.937 status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:19.937 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 39, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:19.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:19.937 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.695
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60483, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:15:20.633 status code was: 502, expected: 200, response time: 60483, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
35.827
Scenario Outline Check dataset record in ngr voor f1d27179-36eb-4376-8048-f51d2eb23a09
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f1d27179-36eb-4376-8048-f51d2eb23a09' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.537
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f1d27179-36eb-4376-8048-f51d2eb23a09' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:10.616 [print] title:Nederlands deel PSSA Waddenzee
* print title 0.000
18:14:10.616 [print] Nederlands deel PSSA Waddenzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:10.618 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "f1d27179-36eb-4376-8048-f51d2eb23a09" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.643
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 457, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"
}
> * print "testing xlinkurl: 0.000
18:14:10.621 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:10.622 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09
> Given url link 0.000
> When method HEAD 0.457
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 457, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
18:14:11.079 status code was: 500, expected: 200, response time: 457, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:11.079 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 457, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsf1d27179-36eb-4376-8048-f51d2eb23a09, response: 
18:14:11.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:11.079 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:11.148 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:14:11.149 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 17.113
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:4.595
Scenario Outline Check dataset record in ngr voor f5f68d51-2ca4-4897-8227-d3938b2b0a7e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f5f68d51-2ca4-4897-8227-d3938b2b0a7e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.502
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f5f68d51-2ca4-4897-8227-d3938b2b0a7e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:12.623 [print] title:Afvalinrichtingen inclusief nucleaire inrichtingen
* print title 0.000
18:14:12.623 [print] Afvalinrichtingen inclusief nucleaire inrichtingen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:12.624 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/us",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/us"
]
* def id = "f5f68d51-2ca4-4897-8227-d3938b2b0a7e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 32.047
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/us}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/us}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e"
}
> * print "testing xlinkurl: 0.000
18:14:12.628 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:12.629 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f5f68d51-2ca4-4897-8227-d3938b2b0a7e
> Given url link 0.000
> When method HEAD 0.444
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:13.075 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:13.075 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.038
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:13.114 status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:13.114 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 38, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:13.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:13.115 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.963
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd"
}
> * print "testing xlinkurl: 0.000
18:14:16.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:16.080 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/us-govserv/4.0/GovernmentalServices.xsd
> Given url link 0.000
> When method HEAD 0.212
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/us"
}
> * print "testing xlinkurl: 0.000
18:14:16.293 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:16.293 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/us
> Given url link 0.000
> When method HEAD 2.978
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:14:19.272 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:19.273 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:19.441 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:19.441 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 16.012
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:14:35.455 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:35.455 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:35.623 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:35.623 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.042
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:41.666 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:41.666 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:41.667 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:41.667 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/us"
}
> * print "testing xlinkurl: 0.000
18:14:41.667 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:41.667 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:41.668 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/us
> Given url link 0.000
> When method HEAD 3.004
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
24.992
Scenario Outline Check dataset record in ngr voor e8b84fae-00b3-49c1-80c1-df8f69f64e8c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e8b84fae-00b3-49c1-80c1-df8f69f64e8c' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.538
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e8b84fae-00b3-49c1-80c1-df8f69f64e8c' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:17.363 [print] title:EEZ volgens UNCLOS - Noordzee
* print title 0.000
18:14:17.363 [print] EEZ volgens UNCLOS - Noordzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:17.365 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "e8b84fae-00b3-49c1-80c1-df8f69f64e8c" 0.007
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.243
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"
}
> * print "testing xlinkurl: 0.000
18:14:17.421 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:17.421 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
18:14:17.731 status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:17.731 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordse8b84fae-00b3-49c1-80c1-df8f69f64e8c, response: 
18:14:17.732 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:17.732 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.059
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:17.792 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:17.792 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.258
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:29.052 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:29.052 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.564
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.020
Scenario Outline Check dataset record in ngr voor 9ed6b8ed-254a-4745-a09a-3b57137d1b69
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '9ed6b8ed-254a-4745-a09a-3b57137d1b69' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '9ed6b8ed-254a-4745-a09a-3b57137d1b69' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:20.014 [print] title:Luchtfoto 2019 25cm CIR open data
* print title 0.000
18:14:20.014 [print] Luchtfoto 2019 25cm CIR open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:20.015 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b024",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "9ed6b8ed-254a-4745-a09a-3b57137d1b69" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.249
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b024}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:27.267 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"
}
> * print "testing xlinkurl: 0.000
18:14:20.019 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:20.019 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b024
> Given url link 0.000
> When method HEAD 0.031
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:14:20.050 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 31 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b024
18:14:20.050 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:14:20.050 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b024"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:14:20.051 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:20.051 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.793
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:20.846 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:20.847 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:20.909 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:20.910 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:14:26.966 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:26.966 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.294
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:27.261 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:27.262 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:27.262 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:27.262 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:27.263 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:27.263 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:27.263 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:27.265 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:27.265 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:27.265 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:27.266 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:27.266 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:27.267 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:27.267 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
47.787
Scenario Outline Check dataset record in ngr voor 88f76a94-ee4d-4e0c-9fde-91b692403e39
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '88f76a94-ee4d-4e0c-9fde-91b692403e39' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '88f76a94-ee4d-4e0c-9fde-91b692403e39' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:23.991 [print] title:Natuurbranden
* print title 0.000
18:14:23.991 [print] Natuurbranden
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:23.992 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/nz",
  "https://www.iana.org/assignments/media-types/image/png",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/nz"
]
* def id = "88f76a94-ee4d-4e0c-9fde-91b692403e39" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 23.639
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:14:24.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:24.002 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.348
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39"
}
> * print "testing xlinkurl: 0.000
18:14:24.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:24.353 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=88f76a94-ee4d-4e0c-9fde-91b692403e39
> Given url link 0.000
> When method HEAD 0.441
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:24.797 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:24.797 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.033
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:24.831 status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:24.831 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 34, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:24.832 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:24.832 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 21.001
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd"
}
> * print "testing xlinkurl: 0.000
18:14:45.834 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:45.834 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:14:46.042 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.043 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.685
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:14:46.729 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.729 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:14:46.951 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.952 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:46.952 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:46.952 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:14:46.952 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:46.953 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.953 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.680
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5.488
Scenario Outline Check dataset record in ngr voor 3e57ce43-7707-43ed-a4b9-72b3a6d812f8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3e57ce43-7707-43ed-a4b9-72b3a6d812f8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3e57ce43-7707-43ed-a4b9-72b3a6d812f8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:27.994 [print] title:Geluidkaart hoofdspoornet 2011 (Lnight)
* print title 0.000
18:14:27.995 [print] Geluidkaart hoofdspoornet 2011 (Lnight)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:27.996 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "3e57ce43-7707-43ed-a4b9-72b3a6d812f8" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.486
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"
}
> * print "testing xlinkurl: 0.000
18:14:27.999 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:27.999 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
18:14:28.308 status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:28.308 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 308, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records3e57ce43-7707-43ed-a4b9-72b3a6d812f8, response: 
18:14:28.309 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:28.309 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.072
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:28.382 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:28.382 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.101
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
30.405
Scenario Outline Check dataset record in ngr voor c2225e5d-b46f-4e38-8445-ab10fd40c0dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c2225e5d-b46f-4e38-8445-ab10fd40c0dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.536
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c2225e5d-b46f-4e38-8445-ab10fd40c0dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:28.802 [print] title:Blokindeling Nederlands Continentaal Plat
* print title 0.000
18:14:28.802 [print] Blokindeling Nederlands Continentaal Plat
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:28.804 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "c2225e5d-b46f-4e38-8445-ab10fd40c0dc" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 14.934
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"
}
> * print "testing xlinkurl: 0.000
18:14:28.807 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:28.807 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc
> Given url link 0.000
> When method HEAD 0.316
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
18:14:29.124 status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:29.125 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 316, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsc2225e5d-b46f-4e38-8445-ab10fd40c0dc, response: 
18:14:29.127 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:29.127 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.352
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:29.481 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:29.481 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 14.257
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:16.111
Scenario Outline Check dataset record in ngr voor krw2006-68b5-4ff3-94a4-9c24109ffd5e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw2006-68b5-4ff3-94a4-9c24109ffd5e' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.510
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw2006-68b5-4ff3-94a4-9c24109ffd5e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:30.998 [print] title:Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 vlakken
* print title 0.000
18:14:30.998 [print] Kaderrichtlijn Water - Oppervlaktewaterlichamen Nederland EU2009 vlakken
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.000
18:14:31.002 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "krw2006-68b5-4ff3-94a4-9c24109ffd5e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:37.801
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:14:31.007 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:31.007 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e"
}
> * print "testing xlinkurl: 0.000
18:14:31.323 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:31.324 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw2006-68b5-4ff3-94a4-9c24109ffd5e
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:14:31.633 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:31.633 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.301
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:14:31.935 status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:14:31.935 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 302, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:14:31.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:31.938 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 12.078
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:14:44.017 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:44.017 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/SurfaceWaterBodies-dir-2000-60
> Given url link 0.000
> When method HEAD 11.067
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:14:55.085 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:55.085 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Lakes-dir-2000-60
> Given url link 0.000
> When method HEAD 7.068
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:15:02.155 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:02.155 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Rivers-dir-2000-60
> Given url link 0.000
> When method HEAD 11.061
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:15:13.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:13.218 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/TransitionalWaters-dir-2000-60
> Given url link 0.000
> When method HEAD 11.097
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:15:24.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:24.317 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/CoastalWaters-dir-2000-60
> Given url link 0.000
> When method HEAD 0.701
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.001
18:15:25.021 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:25.021 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 34.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:15:59.077 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:59.077 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.394
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:15:59.472 status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:15:59.472 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:15:59.472 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:59.473 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.271
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:59.745 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:59.745 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:16:06.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:06.775 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:06.775 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:16:06.775 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:16:06.775 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:06.776 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:06.776 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.664
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:07.442 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:07.442 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:16:07.650 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:07.651 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.455
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:16:08.107 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:08.107 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.697
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
46.666
Scenario Outline Check dataset record in ngr voor 7939fd42-cf88-42c5-ab3b-232cf232a3ac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7939fd42-cf88-42c5-ab3b-232cf232a3ac' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.516
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7939fd42-cf88-42c5-ab3b-232cf232a3ac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:34.283 [print] title:Actueel Hoogtebestand Nederland 2 (AHN2)
* print title 0.000
18:14:34.283 [print] Actueel Hoogtebestand Nederland 2 (AHN2)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:34.285 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wmts",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "7939fd42-cf88-42c5-ab3b-232cf232a3ac" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 23.079
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wmts}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:14:34.291 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:34.291 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.356
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac"
}
> * print "testing xlinkurl: 0.000
18:14:34.649 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:34.649 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/7939fd42-cf88-42c5-ab3b-232cf232a3ac
> Given url link 0.000
> When method HEAD 0.308
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
18:14:34.958 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:34.959 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.201
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:14:35.160 status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:14:35.161 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 201, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:14:35.162 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:35.162 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 1.681
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:14:36.845 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:36.845 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:37.121 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:37.122 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.631
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:14:43.754 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:43.754 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:14:43.755 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:14:43.755 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:14:43.755 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:14:43.756 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:43.756 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:14:43.972 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:43.973 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.780
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:14:44.754 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:44.754 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:14:44.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:44.963 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.698
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:14:45.663 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:45.663 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.237
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:14:45.902 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:45.903 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.242
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:14:46.145 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.146 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.228
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wmts"
}
> * print "testing xlinkurl: 0.000
18:14:46.376 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.376 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wmts
> Given url link 0.000
> When method HEAD 0.244
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:14:46.622 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.622 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.250
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:14:46.874 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.874 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.240
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:14:47.115 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:47.115 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.241
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:14:47.357 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:47.358 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.244
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:14:47.603 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:47.603 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.299
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:53.903 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:53.903 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:54.348 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:54.348 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.441
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:54.791 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:54.792 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.441
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:55.234 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:55.235 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:55.682 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:55.682 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.542
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:14:56.225 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:56.226 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.454
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:14:56.682 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:56.682 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.682
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
8.288
Scenario Outline Check dataset record in ngr voor 6c1cf452-8c62-4046-99ab-640a5e184f9c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6c1cf452-8c62-4046-99ab-640a5e184f9c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.511
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6c1cf452-8c62-4046-99ab-640a5e184f9c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:35.639 [print] title:Geologisch booronderzoek onder INSPIRE
* print title 0.000
18:14:35.639 [print] Geologisch booronderzoek onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:35.641 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13",
  "http://geonetwork-opensource.org/inspire-theme#",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "6c1cf452-8c62-4046-99ab-640a5e184f9c" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.888
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/13}, {link=http://geonetwork-opensource.org/inspire-theme#}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"
}
> * print "testing xlinkurl: 0.000
18:14:35.644 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:35.644 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f
> Given url link 0.000
> When method HEAD 0.281
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
18:14:35.925 status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"
}
> * print "testing xlinkurl: 0.000
18:14:35.926 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 281, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d4d5090-8b18-4c30-a07a-9d738039112f, response: 
18:14:35.926 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:14:35.928 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/13
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
18:14:36.129 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geonetwork-opensource.org/inspire-theme#"
}
> * print "testing xlinkurl: 0.000
18:14:36.129 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/13"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/13, response: 
18:14:36.130 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:36.130 [print] testing xlinkurl:http://geonetwork-opensource.org/inspire-theme#
> Given url link 0.000
> When method HEAD 0.602
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:14:36.732 status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:14:36.733 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://geonetwork-opensource.org/inspire-theme#"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 397, url: http://geonetwork-opensource.org/inspire-theme#, response: 
18:14:36.733 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:36.734 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:14:37.044 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:37.045 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:14:37.046 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:37.047 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.483
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
56.053
Scenario Outline Check dataset record in ngr voor eu-f297898-2640-44c2-bbe9-c0480da83794
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'eu-f297898-2640-44c2-bbe9-c0480da83794' 0.003
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'eu-f297898-2640-44c2-bbe9-c0480da83794' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:38.916 [print] title:Hydrografie - Netwerk (INSPIRE geharmoniseerd) - WT
* print title 0.000
18:14:38.916 [print] Hydrografie - Netwerk (INSPIRE geharmoniseerd) - WT
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:14:38.919 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "eu-f297898-2640-44c2-bbe9-c0480da83794" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 27.754
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/8}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.002
18:14:38.924 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:38.925 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794"
}
> * print "testing xlinkurl: 0.000
18:14:39.241 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:39.242 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/eu-f297898-2640-44c2-bbe9-c0480da83794
> Given url link 0.000
> When method HEAD 0.336
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"
}
> * print "testing xlinkurl: 0.000
18:14:39.579 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:14:39.580 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/8
> Given url link 0.000
> When method HEAD 0.205
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
18:14:39.786 status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:14:39.787 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/8"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 206, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/8, response: 
18:14:39.788 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:39.788 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 5.986
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:14:45.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:45.776 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:46.049 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:46.049 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 16.116
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:15:02.166 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:02.166 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:15:02.166 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:15:02.166 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd"
}
> * print "testing xlinkurl: 0.000
18:15:02.166 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:15:02.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:02.167 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hy-n/4.0/HydroNetwork.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:02.376 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:02.376 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.694
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:04.071 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:04.072 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.379
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:15:05.452 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:05.452 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.456
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:15:05.910 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:05.910 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.764
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
14.598
Scenario Outline Check dataset record in ngr voor c5c4a6d6-b850-473c-8ab5-af9c2c550809
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'c5c4a6d6-b850-473c-8ab5-af9c2c550809' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.510
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'c5c4a6d6-b850-473c-8ab5-af9c2c550809' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:44.254 [print] title:Administratieve Eenheden
* print title 0.000
18:14:44.255 [print] Administratieve Eenheden
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:14:44.257 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "c5c4a6d6-b850-473c-8ab5-af9c2c550809" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.041
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"
}
> * print "testing xlinkurl: 0.000
18:14:44.261 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:44.262 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76
> Given url link 0.000
> When method HEAD 0.006
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:14:44.268 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 6 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76
18:14:44.268 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:44.269 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a76"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:14:44.270 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:44.271 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.028
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:7.484
Scenario Outline Check dataset record in ngr voor bc2c53f6-c908-4d7c-a6c0-78d9a2855640
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'bc2c53f6-c908-4d7c-a6c0-78d9a2855640' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.688
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bc2c53f6-c908-4d7c-a6c0-78d9a2855640' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:45.365 [print] title:Overstromingsgevaarkaarten
* print title 0.000
18:14:45.365 [print] Overstromingsgevaarkaarten
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:45.366 [print] [
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodedAreas-dir-2007-60",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/nz",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/nz"
]
* def id = "bc2c53f6-c908-4d7c-a6c0-78d9a2855640" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:33.400
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodedAreas-dir-2007-60}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640"
}
> * print "testing xlinkurl: 0.000
18:14:45.370 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:45.370 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=bc2c53f6-c908-4d7c-a6c0-78d9a2855640
> Given url link 0.000
> When method HEAD 0.575
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodedAreas-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:14:45.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:45.946 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodedAreas-dir-2007-60
> Given url link 0.000
> When method HEAD 12.072
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:58.019 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:58.019 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.039
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:58.059 status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:58.060 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 40, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:58.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:58.062 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.723
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd"
}
> * print "testing xlinkurl: 0.000
18:15:05.787 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:05.787 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/nz-core/4.0/NaturalRiskZonesCore.xsd
> Given url link 0.000
> When method HEAD 0.220
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:15:06.009 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:06.009 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.691
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:06.701 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:06.701 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:06.867 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:06.867 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.164
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:07.033 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.033 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:07.201 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.201 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:07.369 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.370 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 16.265
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:15:23.637 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.637 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.176
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.001
18:15:23.815 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.816 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.006
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:15:44.823 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:44.823 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:44.990 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:44.990 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 9.027
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:15:54.019 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:54.019 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.187
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:54.207 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:54.207 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.699
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:15:56.908 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:56.908 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.164
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:57.073 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:57.073 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.007
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:18.083 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:18.083 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:18.083 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:18.083 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:16:18.083 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:18.084 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:18.084 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
16.579
Scenario Outline Check dataset record in ngr voor 26103042-50a1-4ee5-9c5b-857a2f8b7680
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '26103042-50a1-4ee5-9c5b-857a2f8b7680' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.497
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '26103042-50a1-4ee5-9c5b-857a2f8b7680' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:48.135 [print] title:Wijk- en Buurtkaart 2017 versie 3
* print title 0.000
18:14:48.135 [print] Wijk- en Buurtkaart 2017 versie 3
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:48.136 [print] [
  "https://www.cbs.nl/-/media/cbs/dossiers/nederland%20regionaal/wijk-en-buurtstatistieken/shape%202017%20versie%2020.zip",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download",
  "https://tools.ietf.org/html/rfc5023",
  ""
]
* def id = "26103042-50a1-4ee5-9c5b-857a2f8b7680" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 8.039
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.cbs.nl/-/media/cbs/dossiers/nederland%20regionaal/wijk-en-buurtstatistieken/shape%202017%20versie%2020.zip}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download}, {link=https://tools.ietf.org/html/rfc5023}, {link=}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:56.177 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.cbs.nl/-/media/cbs/dossiers/nederland%20regionaal/wijk-en-buurtstatistieken/shape%202017%20versie%2020.zip"
}
> * print "testing xlinkurl: 0.000
18:14:48.140 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:48.140 [print] testing xlinkurl:https://www.cbs.nl/-/media/cbs/dossiers/nederland%20regionaal/wijk-en-buurtstatistieken/shape%202017%20versie%2020.zip
> Given url link 0.000
> When method HEAD 0.476
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:48.618 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:48.618 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.057
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:48.676 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:48.677 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.259
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download"
}
> * print "testing xlinkurl: 0.000
18:14:54.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:54.937 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/download
> Given url link 0.000
> When method HEAD 0.645
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc5023"
}
> * print "testing xlinkurl: 0.000
18:14:55.584 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:55.584 [print] testing xlinkurl:https://tools.ietf.org/html/rfc5023
> Given url link 0.000
> When method HEAD 0.590
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
18:14:56.176 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:56.177 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:14:56.177 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:14:56.177 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:4.995
Scenario Outline Check dataset record in ngr voor 4e2ef670-cddd-11dd-ad8b-0800200c9a66
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4e2ef670-cddd-11dd-ad8b-0800200c9a66' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4e2ef670-cddd-11dd-ad8b-0800200c9a66' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:49.524 [print] title:Stads- en Dorpsgezichten
* print title 0.000
18:14:49.525 [print] Stads- en Dorpsgezichten
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:14:49.528 [print] [
  "http://services.rce.geovoorziening.nl/www/download/nl.xml",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps",
  "http://creativecommons.org/licenses/by/3.0/nl/",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "4e2ef670-cddd-11dd-ad8b-0800200c9a66" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:2.235
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://services.rce.geovoorziening.nl/www/download/nl.xml}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps}, {link=http://creativecommons.org/licenses/by/3.0/nl/}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60440, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://services.rce.geovoorziening.nl/www/download/nl.xml"
}
> * print "testing xlinkurl: 0.000
18:14:49.531 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:49.531 [print] testing xlinkurl:http://services.rce.geovoorziening.nl/www/download/nl.xml
> Given url link 0.000
> When method HEAD 0.336
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps"
}
> * print "testing xlinkurl: 0.000
18:14:49.869 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:49.870 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ps
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/3.0/nl/"
}
> * print "testing xlinkurl: 0.000
18:14:50.559 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:50.559 [print] testing xlinkurl:http://creativecommons.org/licenses/by/3.0/nl/
> Given url link 0.000
> When method HEAD 0.103
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:50.663 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:50.663 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.650
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60440, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:15:51.314 status code was: 502, expected: 200, response time: 60440, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:15:51.314 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60440, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:15:51.315 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:51.315 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:34.290
Scenario Outline Check dataset record in ngr voor be6551de-a709-4c6d-a5e2-f63f0cf038ba
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'be6551de-a709-4c6d-a5e2-f63f0cf038ba' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.502
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'be6551de-a709-4c6d-a5e2-f63f0cf038ba' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:51.805 [print] title:Amplitude van het getij op de Noordzee
* print title 0.000
18:14:51.805 [print] Amplitude van het getij op de Noordzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:14:51.808 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/of",
  "http://inspire.ec.europa.eu/applicationschema/of",
  "http://inspire.ec.europa.eu/applicationschema",
  "https://www.nationaalgeoregister.nl:443/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeuapplicationschema-applicationschema",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "https://inspire.ec.europa.eu/id/document/tg/of"
]
* def id = "be6551de-a709-4c6d-a5e2-f63f0cf038ba" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 46.893
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/of}, {link=http://inspire.ec.europa.eu/applicationschema/of}, {link=http://inspire.ec.europa.eu/applicationschema}, {link=https://www.nationaalgeoregister.nl:443/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeuapplicationschema-applicationschema}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=https://inspire.ec.europa.eu/id/document/tg/of}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"
}
> * print "testing xlinkurl: 0.000
18:14:51.812 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:51.812 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba
> Given url link 0.000
> When method HEAD 0.307
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
18:14:52.119 status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/of"
}
> * print "testing xlinkurl: 0.000
18:14:52.120 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 307, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbe6551de-a709-4c6d-a5e2-f63f0cf038ba, response: 
18:14:52.121 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:52.121 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/of
> Given url link 0.000
> When method HEAD 0.987
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/applicationschema/of"
}
> * print "testing xlinkurl: 0.000
18:14:53.110 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:53.111 [print] testing xlinkurl:http://inspire.ec.europa.eu/applicationschema/of
> Given url link 0.000
> When method HEAD 12.161
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/applicationschema"
}
> * print "testing xlinkurl: 0.000
18:15:05.273 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:05.273 [print] testing xlinkurl:http://inspire.ec.europa.eu/applicationschema
> Given url link 0.000
> When method HEAD 21.384
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl:443/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeuapplicationschema-applicationschema"
}
> * print "testing xlinkurl: 0.000
18:15:26.659 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:26.660 [print] testing xlinkurl:https://www.nationaalgeoregister.nl:443/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeuapplicationschema-applicationschema
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:15:26.936 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:26.937 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.058
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:26.996 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:26.996 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.013
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:15:38.011 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.011 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.232
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://inspire.ec.europa.eu/id/document/tg/of"
}
> * print "testing xlinkurl: 0.000
18:15:38.245 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.245 [print] testing xlinkurl:https://inspire.ec.europa.eu/id/document/tg/of
> Given url link 0.000
> When method HEAD 0.457
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4:1.096
Scenario Outline Check dataset record in ngr voor f0821bfe-5a0a-11e9-8647-d663bd873d93
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f0821bfe-5a0a-11e9-8647-d663bd873d93' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.490
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f0821bfe-5a0a-11e9-8647-d663bd873d93' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:14:56.672 [print] title:NB-wetgebieden buiten Natura 2000
* print title 0.000
18:14:56.672 [print] NB-wetgebieden buiten Natura 2000
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
18:14:56.678 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "f0821bfe-5a0a-11e9-8647-d663bd873d93" 0.008
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2:0.298
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 50, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60428, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:14:56.688 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:56.688 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.325
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93"
}
> * print "testing xlinkurl: 0.000
18:14:57.014 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:57.014 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=f0821bfe-5a0a-11e9-8647-d663bd873d93
> Given url link 0.000
> When method HEAD 0.446
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:57.462 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:57.463 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.050
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 50, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:57.514 status code was: 404, expected: 200, response time: 50, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:57.515 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 50, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:14:57.515 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:57.516 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 15.355
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:15:12.872 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:12.873 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:15:13.088 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:13.088 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.772
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:13.862 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:13.862 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:14.029 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:14.029 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.167
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:14.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:14.197 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.980
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:15:20.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:20.179 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:20.401 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:20.401 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 35.110
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:15:55.513 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:55.514 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:55.681 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:55.681 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1:0.634
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60428, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:16:56.316 status code was: 502, expected: 200, response time: 60428, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:56.316 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60428, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:16:56.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:56.318 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:56.318 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:56.318 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:16:56.318 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:56.318 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:56.318 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.665
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
19.632
Scenario Outline Check dataset record in ngr voor 64c987ec-dce6-11e3-8563-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '64c987ec-dce6-11e3-8563-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.522
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '64c987ec-dce6-11e3-8563-901b0e19e163' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:14:57.893 [print] title:Actuele synoptische weerwaarnemingen KNMI Nederland per 10 minuten (24 uur)
* print title 0.000
18:14:57.894 [print] Actuele synoptische weerwaarnemingen KNMI Nederland per 10 minuten (24 uur)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:14:57.896 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "64c987ec-dce6-11e3-8563-901b0e19e163" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 9.553
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/EPSG:4326}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 32, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326"
}
> * print "testing xlinkurl: 0.000
18:14:57.901 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:57.901 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/EPSG:4326
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"
}
> * print "testing xlinkurl: 0.000
18:14:58.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:58.201 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b
> Given url link 0.000
> When method HEAD 0.324
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
18:14:58.525 status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf"
}
> * print "testing xlinkurl: 0.000
18:14:58.526 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 324, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records1b2abd21-3084-4db7-ab49-46866b4aac2b, response: 
18:14:58.528 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:58.529 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf
> Given url link 0.000
> When method HEAD 0.689
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac"
}
> * print "testing xlinkurl: 0.000
18:14:59.220 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:59.220 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac
> Given url link 0.000
> When method HEAD 0.666
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:14:59.888 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:59.888 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.032
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 32, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:14:59.921 status code was: 404, expected: 200, response time: 32, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:14:59.921 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 32, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:14:59.922 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:14:59.922 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.059
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:15:06.982 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:06.982 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.469
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
24.629
Scenario Outline Check dataset record in ngr voor 6050578f-0010-4bfa-b013-c8617b80ba62
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '6050578f-0010-4bfa-b013-c8617b80ba62' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.562
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '6050578f-0010-4bfa-b013-c8617b80ba62' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:07.241 [print] title:Grondwatersamenstellinggegevens KRW meetronde 2012 onder INSPIRE
* print title 0.000
18:15:07.241 [print] Grondwatersamenstellinggegevens KRW meetronde 2012 onder INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:15:07.244 [print] [
  "https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "6050578f-0010-4bfa-b013-c8617b80ba62" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.030
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 465, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"
}
> * print "testing xlinkurl: 0.000
18:15:07.248 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.249 [print] testing xlinkurl:https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218
> Given url link 0.000
> When method HEAD 0.278
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
18:15:07.528 status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"
}
> * print "testing xlinkurl: 0.000
18:15:07.528 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: https://nationaalgeoregister.nl/geonetwork/srv/resources7d716522-fa1a-43b4-99c0-3a3480f9e218, response: 
18:15:07.528 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.528 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme
> Given url link 0.000
> When method HEAD 0.464
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 465, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:15:07.993 status code was: 500, expected: 200, response time: 465, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:07.993 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 465, url: https://www.nationaalgeoregister.nl/geonetwork/srv/eng/thesaurus.download?ref=external.theme.inspire-theme, response: 
18:15:07.994 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.994 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.281
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
30.305
Scenario Outline Check dataset record in ngr voor a04afee4-47d5-45b7-b7a0-a6f86106af11
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a04afee4-47d5-45b7-b7a0-a6f86106af11' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.532
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a04afee4-47d5-45b7-b7a0-a6f86106af11' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:07.987 [print] title:Mosselzaadinvanginstallaties
* print title 0.000
18:15:07.987 [print] Mosselzaadinvanginstallaties
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:07.988 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "a04afee4-47d5-45b7-b7a0-a6f86106af11" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 14.890
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1246, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:15:22.880 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1246, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:15:07.992 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:07.992 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.563
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11"
}
> * print "testing xlinkurl: 0.000
18:15:08.556 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:08.556 [print] testing xlinkurl:http://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/a04afee4-47d5-45b7-b7a0-a6f86106af11
> Given url link 0.000
> When method HEAD 0.219
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:15:08.785 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.002
18:15:08.788 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.603
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:15:09.392 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:09.393 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.568
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:09.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:09.963 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.025
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
18:15:20.990 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:20.990 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.889
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1246, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:15:22.880 status code was: 404, expected: 200, response time: 1246, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1.985
Scenario Outline Check dataset record in ngr voor a5f961e9-ebdd-41e2-b8e8-ab33ed340a83
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a5f961e9-ebdd-41e2-b8e8-ab33ed340a83' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.504
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a5f961e9-ebdd-41e2-b8e8-ab33ed340a83' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:13.360 [print] title:Adressen (INSPIRE geharmoniseerd)
* print title 0.000
18:15:13.360 [print] Adressen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:13.361 [print] [
  "http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "a5f961e9-ebdd-41e2-b8e8-ab33ed340a83" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.739
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"
}
> * print "testing xlinkurl: 0.000
18:15:13.365 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:13.366 [print] testing xlinkurl:http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94
> Given url link 0.000
> When method HEAD 0.039
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:15:13.405 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 39 milliseconds for URL: http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94
18:15:13.405 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:13.405 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/1d32fc50-cd5b-4425-b0df-16c7c7940e94"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:15:13.406 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:13.406 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.696
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:59.870
Scenario Outline Check dataset record in ngr voor ror-9d8e-4758-83fx-28b057f185f1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'ror-9d8e-4758-83fx-28b057f185f1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.518
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'ror-9d8e-4758-83fx-28b057f185f1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:14.624 [print] title:Richtlijn Overstromingsrisico - historische overstromingen EU2018
* print title 0.000
18:15:14.624 [print] Richtlijn Overstromingsrisico - historische overstromingen EU2018
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.003
* print nlinks 0.000
18:15:14.630 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/nz",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "ror-9d8e-4758-83fx-28b057f185f1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 59.675
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/25}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/nz}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:15:14.633 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:14.633 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.368
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1"
}
> * print "testing xlinkurl: 0.002
18:15:15.004 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:15.005 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/ror-9d8e-4758-83fx-28b057f185f1
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"
}
> * print "testing xlinkurl: 0.000
18:15:15.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:15.317 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/25
> Given url link 0.000
> When method HEAD 0.300
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
18:15:15.617 status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:15:15.617 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/25"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 300, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/25, response: 
18:15:15.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:15.619 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 1.995
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:15:17.616 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:17.616 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/FloodRiskZones-dir-2007-60
> Given url link 0.000
> When method HEAD 6.619
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:15:24.237 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:24.238 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 15.050
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:15:39.289 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.289 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.322
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:15:39.611 status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:15:39.611 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 322, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:15:39.612 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.612 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.271
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:39.884 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.884 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 30.018
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:16:09.904 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:09.904 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:09.904 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:16:09.904 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:09.905 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:09.905 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:09.905 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/nz/0.0/NaturalRiskZones.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/nz"
}
> * print "testing xlinkurl: 0.000
18:16:10.115 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:10.115 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/nz
> Given url link 0.000
> When method HEAD 0.672
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:10.789 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:10.789 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.373
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:16:13.164 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:13.164 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.473
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:16:13.639 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:13.640 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.665
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
17.690
Scenario Outline Check dataset record in ngr voor 08b27bf0-e34a-4b30-9eac-5edadfb6a288
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '08b27bf0-e34a-4b30-9eac-5edadfb6a288' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '08b27bf0-e34a-4b30-9eac-5edadfb6a288' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:19.824 [print] title:Afgevoerde hoeveelheid afval in 2015 vanuit de industrie
* print title 0.000
18:15:19.824 [print] Afgevoerde hoeveelheid afval in 2015 vanuit de industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:19.825 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "08b27bf0-e34a-4b30-9eac-5edadfb6a288" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 8.571
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:15:19.828 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:19.828 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.555
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"
}
> * print "testing xlinkurl: 0.000
18:15:20.384 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:20.385 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804
> Given url link 0.000
> When method HEAD 0.354
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:15:20.739 javax.net.ssl.SSLException: Connection reset, http call failed after 354 milliseconds for URL: https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804
18:15:20.739 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:15:20.739 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1de92b14-bc21-4f33-b0de-abd325e61804"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:15:20.740 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:20.740 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.621
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:21.362 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:21.362 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.035
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2.908
Scenario Outline Check dataset record in ngr voor e536d943-ecff-4d7a-9500-cc31a263a6af
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e536d943-ecff-4d7a-9500-cc31a263a6af' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.505
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e536d943-ecff-4d7a-9500-cc31a263a6af' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:21.142 [print] title:Publiekrechtelijke beperkingen
* print title 0.000
18:15:21.142 [print] Publiekrechtelijke beperkingen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:21.143 [print] [
  "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "e536d943-ecff-4d7a-9500-cc31a263a6af" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1.200
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"
}
> * print "testing xlinkurl: 0.000
18:15:21.147 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:21.147 [print] testing xlinkurl:http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:15:21.148 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124
18:15:21.148 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:15:21.148 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/e2318c58-b1e6-4621-9c77-33b8a1fd0124"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:15:21.148 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:21.148 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.070
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:21.220 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:21.220 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.680
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:15:21.902 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:21.902 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.442
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
29.980
Scenario Outline Check dataset record in ngr voor daa63e4c-dce6-11e3-991e-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'daa63e4c-dce6-11e3-991e-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.572
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'daa63e4c-dce6-11e3-991e-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:22.921 [print] title:Gecontroleerde klimatologische daggegevens KNMI Nederland
* print title 0.000
18:15:22.921 [print] Gecontroleerde klimatologische daggegevens KNMI Nederland
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:22.922 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "daa63e4c-dce6-11e3-991e-901b0e19e163" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 14.703
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/EPSG:4326}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326"
}
> * print "testing xlinkurl: 0.000
18:15:22.925 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:22.925 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/EPSG:4326
> Given url link 0.000
> When method HEAD 0.355
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"
}
> * print "testing xlinkurl: 0.000
18:15:23.282 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.282 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e
> Given url link 0.000
> When method HEAD 0.305
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
18:15:23.589 status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf"
}
> * print "testing xlinkurl: 0.000
18:15:23.589 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 306, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records6e4a2001-fef7-471c-8286-4f859bc1131e, response: 
18:15:23.590 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.590 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/mf
> Given url link 0.000
> When method HEAD 0.792
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac"
}
> * print "testing xlinkurl: 0.000
18:15:24.384 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:24.384 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/ac
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:15:25.069 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:25.070 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.035
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:15:25.105 status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:25.105 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 35, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:15:25.106 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:25.106 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 12.012
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:15:37.120 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:37.120 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.506
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:3.962
Scenario Outline Check dataset record in ngr voor bb11be63-bd38-4632-bf54-df44c423a529
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'bb11be63-bd38-4632-bf54-df44c423a529' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.543
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'bb11be63-bd38-4632-bf54-df44c423a529' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:23.427 [print] title:Territoriale Zee volgens UNCLOS - Noordzee
* print title 0.000
18:15:23.427 [print] Territoriale Zee volgens UNCLOS - Noordzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:23.429 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "bb11be63-bd38-4632-bf54-df44c423a529" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:1.718
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60474, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"
}
> * print "testing xlinkurl: 0.000
18:15:23.434 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.435 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529
> Given url link 0.000
> When method HEAD 0.314
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
18:15:23.750 status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:15:23.750 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 315, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/recordsbb11be63-bd38-4632-bf54-df44c423a529, response: 
18:15:23.751 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.751 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.084
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:15:23.837 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:23.861 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1:0.687
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60474, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:16:24.549 status code was: 502, expected: 200, response time: 60474, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:16:24.549 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60474, url: http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply, response: 
18:16:24.550 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:24.550 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.600
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
5:25.244
Scenario Outline Check dataset record in ngr voor cf69ec50-9849-4afd-853c-ee56211d336d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'cf69ec50-9849-4afd-853c-ee56211d336d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.545
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'cf69ec50-9849-4afd-853c-ee56211d336d' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:28.948 [print] title:Waterstanden en afvoeren actueel - Rijkswaterstaat
* print title 0.000
18:15:28.948 [print] Waterstanden en afvoeren actueel - Rijkswaterstaat
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:28.950 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ef",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "cf69ec50-9849-4afd-853c-ee56211d336d" 0.006
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2:42.348
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ef}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/theme#, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d"
}
> * print "testing xlinkurl: 0.000
18:15:28.959 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:28.959 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/cf69ec50-9849-4afd-853c-ee56211d336d
> Given url link 0.000
> When method HEAD 0.319
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
18:15:29.280 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:29.280 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:15:29.481 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
18:15:29.481 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:15:29.482 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:29.482 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
18:15:29.682 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:15:29.682 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
18:15:29.682 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:29.683 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 1:0.694
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/theme#, response: 
18:16:30.378 status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:16:30.378 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60489, url: http://inspire.ec.europa.eu/theme#, response: 
18:16:30.379 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:30.379 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:30.654 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:30.654 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 39.031
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:17:09.687 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.687 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:17:09.687 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:17:09.687 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd"
}
> * print "testing xlinkurl: 0.000
18:17:09.688 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:17:09.688 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.688 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ef"
}
> * print "testing xlinkurl: 0.000
18:17:09.897 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.897 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ef
> Given url link 0.000
> When method HEAD 0.704
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:10.604 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:10.604 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.999
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:12.605 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:12.605 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 8.999
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:21.606 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:21.606 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 3.989
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:25.597 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:25.598 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 4.002
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:29.602 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:29.602 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.048
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:40.651 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:40.651 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.017
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:42.670 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:42.670 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.975
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:49.647 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:49.647 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.968
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:56.616 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:56.616 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1.997
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:58.615 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:58.615 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.984
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:18:04.602 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:04.602 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.016
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:18:10.620 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:10.620 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
0.912
Scenario Outline Check dataset record in ngr voor a29917b9-3426-4041-a11b-69bcb2256904
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'a29917b9-3426-4041-a11b-69bcb2256904' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.373
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'a29917b9-3426-4041-a11b-69bcb2256904' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:38.004 [print] title:Kadastrale kaart v4
* print title 0.000
18:15:38.004 [print] Kadastrale kaart v4
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:15:38.006 [print] [
  "h",
  "t",
  "t",
  "p",
  "s",
  ":",
  "/",
  "/",
  "w",
  "w",
  "w",
  ".",
  "n",
  "a",
  "t",
  "i",
  "o",
  "n",
  "a",
  "a",
  "l",
  "g",
  "e",
  "o",
  "r",
  "e",
  "g",
  "i",
  "s",
  "t",
  "e",
  "r",
  ".",
  "n",
  "l",
  ":",
  "4",
  "4",
  "3",
  "/",
  "g",
  "e",
  "o",
  "n",
  "e",
  "t",
  "w",
  "o",
  "r",
  "k",
  "/",
  "s",
  "r",
  "v",
  "/",
  "e",
  "n",
  "g",
  "/",
  "t",
  "h",
  "e",
  "s",
  "a",
  "u",
  "r",
  "u",
  "s",
  ".",
  "d",
  "o",
  "w",
  "n",
  "l",
  "o",
  "a",
  "d",
  "?",
  "r",
  "e",
  "f",
  "=",
  "e",
  "x",
  "t",
  "e",
  "r",
  "n",
  "a",
  "l",
  ".",
  "t",
  "h",
  "e",
  "m",
  "e",
  ".",
  "h",
  "t",
  "t",
  "p",
  "i",
  "n",
  "s",
  "p",
  "i",
  "r",
  "e",
  "e",
  "c",
  "e",
  "u",
  "r",
  "o",
  "p",
  "a",
  "e",
  "u",
  "t",
  "h",
  "e",
  "m",
  "e",
  "-",
  "t",
  "h",
  "e",
  "m",
  "e"
]
* def id = "a29917b9-3426-4041-a11b-69bcb2256904" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 0.310
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=h}, {link=t}, {link=t}, {link=p}, {link=s}, {link=:}, {link=/}, {link=/}, {link=w}, {link=w}, {link=w}, {link=.}, {link=n}, {link=a}, {link=t}, {link=i}, {link=o}, {link=n}, {link=a}, {link=a}, {link=l}, {link=g}, {link=e}, {link=o}, {link=r}, {link=e}, {link=g}, {link=i}, {link=s}, {link=t}, {link=e}, {link=r}, {link=.}, {link=n}, {link=l}, {link=:}, {link=4}, {link=4}, {link=3}, {link=/}, {link=g}, {link=e}, {link=o}, {link=n}, {link=e}, {link=t}, {link=w}, {link=o}, {link=r}, {link=k}, {link=/}, {link=s}, {link=r}, {link=v}, {link=/}, {link=e}, {link=n}, {link=g}, {link=/}, {link=t}, {link=h}, {link=e}, {link=s}, {link=a}, {link=u}, {link=r}, {link=u}, {link=s}, {link=.}, {link=d}, {link=o}, {link=w}, {link=n}, {link=l}, {link=o}, {link=a}, {link=d}, {link=?}, {link=r}, {link=e}, {link=f}, {link==}, {link=e}, {link=x}, {link=t}, {link=e}, {link=r}, {link=n}, {link=a}, {link=l}, {link=.}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}, {link=.}, {link=h}, {link=t}, {link=t}, {link=p}, {link=i}, {link=n}, {link=s}, {link=p}, {link=i}, {link=r}, {link=e}, {link=e}, {link=c}, {link=e}, {link=u}, {link=r}, {link=o}, {link=p}, {link=a}, {link=e}, {link=u}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}, {link=-}, {link=t}, {link=h}, {link=e}, {link=m}, {link=e}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
-------
feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"k"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"?"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"="}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 101
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 102
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 103
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 104
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 105
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 106
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 107
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 108
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 109
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 110
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 111
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 112
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 113
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 114
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 115
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 116
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 117
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 118
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 119
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 120
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 121
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 122
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 123
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"-"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 124
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 125
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 126
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 127
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 128
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.304 feature call (loop) failed at index: 128
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:15:38.013 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.013 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.013 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:15:38.013 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.013 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.014 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.014 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.014 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.014 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.014 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.014 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.015 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.015 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.015 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
18:15:38.015 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.015 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.016 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.016 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
18:15:38.016 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:15:38.016 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.016 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.017 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.017 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:15:38.017 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.000
18:15:38.017 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.017 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.018 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:15:38.018 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:15:38.018 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:15:38.018 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.018 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.019 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:15:38.019 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:15:38.019 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.019 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.019 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.020 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:15:38.020 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
18:15:38.020 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.020 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.020 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.021 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
18:15:38.021 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
18:15:38.021 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.021 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.021 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.022 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
18:15:38.022 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
18:15:38.022 feature call (loop) failed at index: 9
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.022 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.022 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.023 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
18:15:38.023 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:15:38.023 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.023 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.023 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.024 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:15:38.024 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.024 feature call (loop) failed at index: 11
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.025 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.025 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.025 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.025 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:15:38.025 feature call (loop) failed at index: 12
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.026 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.026 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.026 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.026 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.026 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.027 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.027 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.027 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.027 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
18:15:38.027 feature call (loop) failed at index: 14
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.028 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.028 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.028 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:15:38.028 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[16] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.012
18:15:38.028 feature call (loop) failed at index: 15
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.041 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.041 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.041 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.041 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[17] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.041 feature call (loop) failed at index: 16
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.042 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.042 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.042 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.042 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[18] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:15:38.042 feature call (loop) failed at index: 17
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.043 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.043 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.043 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.043 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[19] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:15:38.043 feature call (loop) failed at index: 18
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.043 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:15:38.045 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.046 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.046 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[20] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:15:38.046 feature call (loop) failed at index: 19
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.046 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.046 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.047 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:15:38.047 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[21] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
18:15:38.047 feature call (loop) failed at index: 20
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.047 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.047 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.048 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:15:38.048 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[22] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.001
18:15:38.048 feature call (loop) failed at index: 21
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.050 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.050 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.050 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.050 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[23] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.010
18:15:38.050 feature call (loop) failed at index: 22
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.061 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.061 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.061 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[24] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:15:38.061 feature call (loop) failed at index: 23
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.062 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.062 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.062 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.062 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[25] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.003
18:15:38.062 feature call (loop) failed at index: 24
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.066 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.066 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.066 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.066 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[26] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
18:15:38.066 feature call (loop) failed at index: 25
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.067 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.067 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.067 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:15:38.067 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[27] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
18:15:38.067 feature call (loop) failed at index: 26
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.068 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.068 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.068 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:15:38.068 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[28] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:15:38.068 feature call (loop) failed at index: 27
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.069 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.069 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.069 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:15:38.069 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[29] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.069 feature call (loop) failed at index: 28
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.070 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.070 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.070 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.070 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[30] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.070 feature call (loop) failed at index: 29
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.071 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.003
18:15:38.074 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.074 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.074 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[31] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.002
18:15:38.074 feature call (loop) failed at index: 30
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.077 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.077 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.078 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.078 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[32] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:15:38.078 feature call (loop) failed at index: 31
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.078 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.079 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.079 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:15:38.079 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[33] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.079 feature call (loop) failed at index: 32
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.079 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.080 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.080 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.080 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[34] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.003
18:15:38.080 feature call (loop) failed at index: 33
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.084 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.084 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.084 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:15:38.084 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[35] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ":"
}
> * print "testing xlinkurl: 0.003
18:15:38.089 feature call (loop) failed at index: 34
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.093 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.093 [print] testing xlinkurl::
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:15:38.093 http request failed: java.net.URISyntaxException: Expected scheme name at index 0: :
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[36] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "4"
}
> * print "testing xlinkurl: 0.000
18:15:38.093 feature call (loop) failed at index: 35
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":":"}
checkxlinkurl.template.feature:14 - java.net.URISyntaxException: Expected scheme name at index 0: :
18:15:38.094 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.094 [print] testing xlinkurl:4
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.094 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 4
18:15:38.094 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[37] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "4"
}
> * print "testing xlinkurl: 0.000
18:15:38.094 feature call (loop) failed at index: 36
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.095 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.095 [print] testing xlinkurl:4
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.095 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 4
18:15:38.095 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[38] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "3"
}
> * print "testing xlinkurl: 0.000
18:15:38.095 feature call (loop) failed at index: 37
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"4"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.096 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.096 [print] testing xlinkurl:3
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.096 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 3
18:15:38.096 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[39] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.006
18:15:38.096 feature call (loop) failed at index: 38
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"3"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.103 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.103 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.105 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:15:38.105 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[40] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
18:15:38.106 feature call (loop) failed at index: 39
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.106 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.106 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.106 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:15:38.106 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[41] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.107 feature call (loop) failed at index: 40
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.107 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.004
18:15:38.112 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.112 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.112 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[42] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:15:38.113 feature call (loop) failed at index: 41
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.113 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.113 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.113 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.113 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[43] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.113 feature call (loop) failed at index: 42
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.114 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.114 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.114 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[44] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.114 feature call (loop) failed at index: 43
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.115 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.115 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.115 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.115 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[45] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.115 feature call (loop) failed at index: 44
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.116 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.116 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.116 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.116 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[46] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
18:15:38.116 feature call (loop) failed at index: 45
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.117 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.117 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.117 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
18:15:38.117 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[47] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.005
18:15:38.117 feature call (loop) failed at index: 46
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.123 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.124 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.125 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.127 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[48] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:15:38.129 feature call (loop) failed at index: 47
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.130 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.131 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.132 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.132 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[49] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "k"
}
> * print "testing xlinkurl: 0.001
18:15:38.132 feature call (loop) failed at index: 48
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.135 [print] testing xlinkurl:k
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.135 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: k
18:15:38.135 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[50] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.001
18:15:38.136 feature call (loop) failed at index: 49
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"k"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.137 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.138 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.139 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:15:38.139 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[51] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.001
18:15:38.139 feature call (loop) failed at index: 50
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.141 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.141 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.142 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:15:38.142 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[52] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
18:15:38.142 feature call (loop) failed at index: 51
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.144 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.145 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.145 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.145 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[53] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "v"
}
> * print "testing xlinkurl: 0.000
18:15:38.145 feature call (loop) failed at index: 52
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.145 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.146 [print] testing xlinkurl:v
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.146 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: v
18:15:38.146 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[54] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:15:38.146 feature call (loop) failed at index: 53
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"v"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.146 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.147 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.147 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:15:38.147 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[55] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.147 feature call (loop) failed at index: 54
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.148 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.148 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.148 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.148 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[56] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.148 feature call (loop) failed at index: 55
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.149 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.149 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.149 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.149 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[57] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "g"
}
> * print "testing xlinkurl: 0.000
18:15:38.149 feature call (loop) failed at index: 56
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.150 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.150 [print] testing xlinkurl:g
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.151 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: g
18:15:38.151 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[58] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "/"
}
> * print "testing xlinkurl: 0.000
18:15:38.151 feature call (loop) failed at index: 57
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"g"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.151 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.152 [print] testing xlinkurl:/
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.152 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: /
18:15:38.152 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[59] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.152 feature call (loop) failed at index: 58
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"/"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.152 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.153 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.153 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.153 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[60] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:15:38.153 feature call (loop) failed at index: 59
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.153 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.154 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.154 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:15:38.154 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[61] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.154 feature call (loop) failed at index: 60
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.155 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.155 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.155 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.155 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[62] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.011
18:15:38.155 feature call (loop) failed at index: 61
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.167 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.167 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.168 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:15:38.168 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[63] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.001
18:15:38.168 feature call (loop) failed at index: 62
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.169 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.170 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.171 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.171 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[64] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.001
18:15:38.171 feature call (loop) failed at index: 63
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.172 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.172 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.173 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:15:38.173 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[65] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
18:15:38.174 feature call (loop) failed at index: 64
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.175 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.175 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.176 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.176 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[66] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
18:15:38.176 feature call (loop) failed at index: 65
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.177 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.177 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.178 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:15:38.178 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[67] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:15:38.178 feature call (loop) failed at index: 66
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.179 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.179 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.180 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:15:38.180 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[68] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:15:38.180 feature call (loop) failed at index: 67
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.181 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.182 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.182 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:15:38.182 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[69] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:15:38.182 feature call (loop) failed at index: 68
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.182 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.182 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.183 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:15:38.183 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[70] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:15:38.183 feature call (loop) failed at index: 69
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.183 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.183 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.184 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.184 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[71] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "w"
}
> * print "testing xlinkurl: 0.000
18:15:38.184 feature call (loop) failed at index: 70
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.184 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.184 [print] testing xlinkurl:w
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.185 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: w
18:15:38.185 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[72] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.185 feature call (loop) failed at index: 71
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"w"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.185 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.185 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.186 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.186 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[73] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.000
18:15:38.186 feature call (loop) failed at index: 72
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.186 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.186 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.187 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:15:38.187 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[74] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:15:38.187 feature call (loop) failed at index: 73
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.187 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.187 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.188 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.188 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[75] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:15:38.188 feature call (loop) failed at index: 74
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.188 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.189 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.189 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.189 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[76] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "d"
}
> * print "testing xlinkurl: 0.000
18:15:38.189 feature call (loop) failed at index: 75
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.189 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.190 [print] testing xlinkurl:d
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.190 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: d
18:15:38.190 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[77] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "?"
}
> * print "testing xlinkurl: 0.000
18:15:38.190 feature call (loop) failed at index: 76
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"d"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.190 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.191 [print] testing xlinkurl:?
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.191 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: ?
18:15:38.191 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[78] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:15:38.191 feature call (loop) failed at index: 77
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"?"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.191 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.192 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.192 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.192 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[79] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.192 feature call (loop) failed at index: 78
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.193 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.193 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.193 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.193 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[80] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "f"
}
> * print "testing xlinkurl: 0.000
18:15:38.193 feature call (loop) failed at index: 79
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.194 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.194 [print] testing xlinkurl:f
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.194 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: f
18:15:38.194 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[81] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "="
}
> * print "testing xlinkurl: 0.000
18:15:38.194 feature call (loop) failed at index: 80
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"f"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.195 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.195 [print] testing xlinkurl:=
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.195 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: =
18:15:38.195 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[82] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.195 feature call (loop) failed at index: 81
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"="}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.196 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.196 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.196 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.196 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[83] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "x"
}
> * print "testing xlinkurl: 0.000
18:15:38.196 feature call (loop) failed at index: 82
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.197 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.197 [print] testing xlinkurl:x
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.197 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: x
18:15:38.197 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[84] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.197 feature call (loop) failed at index: 83
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"x"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.198 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.198 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.198 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.198 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[85] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.198 feature call (loop) failed at index: 84
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.199 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.199 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.199 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.199 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[86] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:15:38.199 feature call (loop) failed at index: 85
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.200 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.200 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.201 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.201 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[87] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.201 feature call (loop) failed at index: 86
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.202 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.203 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.203 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.203 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[88] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.007
18:15:38.203 feature call (loop) failed at index: 87
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.211 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.211 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.212 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.212 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[89] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "l"
}
> * print "testing xlinkurl: 0.001
18:15:38.213 feature call (loop) failed at index: 88
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.215 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.215 [print] testing xlinkurl:l
> Given url link 0.000
> When method HEAD 0.002
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.215 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: l
18:15:38.217 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[90] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:15:38.217 feature call (loop) failed at index: 89
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"l"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.218 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.218 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.218 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:15:38.218 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[91] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.218 feature call (loop) failed at index: 90
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.219 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.219 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.219 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.219 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[92] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:15:38.219 feature call (loop) failed at index: 91
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.220 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.220 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.220 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:15:38.220 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[93] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.220 feature call (loop) failed at index: 92
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.229 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.229 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.229 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.230 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[94] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.004
18:15:38.230 feature call (loop) failed at index: 93
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.234 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.235 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.235 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:15:38.235 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[95] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.001
18:15:38.235 feature call (loop) failed at index: 94
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.237 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.237 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.237 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.237 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[96] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "."
}
> * print "testing xlinkurl: 0.000
18:15:38.238 feature call (loop) failed at index: 95
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.238 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.238 [print] testing xlinkurl:.
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.239 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: .
18:15:38.239 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[97] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:15:38.239 feature call (loop) failed at index: 96
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"."}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.239 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.240 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.240 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:15:38.240 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[98] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.240 feature call (loop) failed at index: 97
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.241 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.241 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.241 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.241 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[99] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.241 feature call (loop) failed at index: 98
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.242 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.242 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.242 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.242 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[100] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
18:15:38.242 feature call (loop) failed at index: 99
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.243 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.243 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.004
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.247 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
18:15:38.247 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[101] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.000
18:15:38.248 feature call (loop) failed at index: 100
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.249 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.249 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.250 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:15:38.250 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[102] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "n"
}
> * print "testing xlinkurl: 0.000
18:15:38.250 feature call (loop) failed at index: 101
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.251 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.251 [print] testing xlinkurl:n
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.251 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: n
18:15:38.252 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[103] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "s"
}
> * print "testing xlinkurl: 0.000
18:15:38.252 feature call (loop) failed at index: 102
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"n"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.253 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.253 [print] testing xlinkurl:s
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.254 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: s
18:15:38.254 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[104] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.001
18:15:38.254 feature call (loop) failed at index: 103
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"s"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.256 [print]
> * def link = __arg.link 0.001
> * print "testing xlinkurl:" + link 0.000
18:15:38.257 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.258 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
18:15:38.258 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[105] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "i"
}
> * print "testing xlinkurl: 0.001
18:15:38.258 feature call (loop) failed at index: 104
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.260 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.262 [print] testing xlinkurl:i
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.262 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: i
18:15:38.262 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[106] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.001
18:15:38.262 feature call (loop) failed at index: 105
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"i"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.263 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.268 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.268 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.268 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[107] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.269 feature call (loop) failed at index: 106
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.269 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.269 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.270 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.270 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[108] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.270 feature call (loop) failed at index: 107
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.270 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.270 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.271 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.271 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[109] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "c"
}
> * print "testing xlinkurl: 0.000
18:15:38.271 feature call (loop) failed at index: 108
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.271 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.272 [print] testing xlinkurl:c
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.272 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: c
18:15:38.272 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[110] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.272 feature call (loop) failed at index: 109
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"c"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.273 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.273 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.273 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.273 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[111] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
18:15:38.273 feature call (loop) failed at index: 110
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.274 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.274 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.274 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:15:38.274 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[112] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "r"
}
> * print "testing xlinkurl: 0.000
18:15:38.274 feature call (loop) failed at index: 111
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.275 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.275 [print] testing xlinkurl:r
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.275 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: r
18:15:38.275 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[113] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "o"
}
> * print "testing xlinkurl: 0.000
18:15:38.275 feature call (loop) failed at index: 112
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"r"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.276 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.276 [print] testing xlinkurl:o
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.276 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: o
18:15:38.276 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[114] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "p"
}
> * print "testing xlinkurl: 0.000
18:15:38.276 feature call (loop) failed at index: 113
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"o"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.277 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.277 [print] testing xlinkurl:p
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.277 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: p
18:15:38.277 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[115] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "a"
}
> * print "testing xlinkurl: 0.000
18:15:38.277 feature call (loop) failed at index: 114
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"p"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.277 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.278 [print] testing xlinkurl:a
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.278 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: a
18:15:38.278 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[116] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.278 feature call (loop) failed at index: 115
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"a"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.278 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.278 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.279 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.279 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[117] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "u"
}
> * print "testing xlinkurl: 0.000
18:15:38.279 feature call (loop) failed at index: 116
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.279 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.279 [print] testing xlinkurl:u
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.280 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: u
18:15:38.280 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[118] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.280 feature call (loop) failed at index: 117
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"u"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.280 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.280 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.281 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.281 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[119] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:15:38.281 feature call (loop) failed at index: 118
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.281 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.281 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.281 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:15:38.281 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[120] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.281 feature call (loop) failed at index: 119
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.282 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.282 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.282 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.282 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[121] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
18:15:38.282 feature call (loop) failed at index: 120
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.283 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.283 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.283 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:15:38.283 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[122] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.283 feature call (loop) failed at index: 121
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.284 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.284 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.284 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.284 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[123] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "-"
}
> * print "testing xlinkurl: 0.000
18:15:38.284 feature call (loop) failed at index: 122
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.285 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.285 [print] testing xlinkurl:-
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.286 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: -
18:15:38.286 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[124] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "t"
}
> * print "testing xlinkurl: 0.000
18:15:38.286 feature call (loop) failed at index: 123
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"-"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.287 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.287 [print] testing xlinkurl:t
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.287 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: t
18:15:38.287 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[125] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "h"
}
> * print "testing xlinkurl: 0.000
18:15:38.287 feature call (loop) failed at index: 124
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"t"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.296 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.296 [print] testing xlinkurl:h
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.296 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: h
18:15:38.296 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[126] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.296 feature call (loop) failed at index: 125
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"h"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.297 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.297 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.297 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.297 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[127] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "m"
}
> * print "testing xlinkurl: 0.000
18:15:38.297 feature call (loop) failed at index: 126
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"e"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.298 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.298 [print] testing xlinkurl:m
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.298 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: m
18:15:38.298 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[128] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "e"
}
> * print "testing xlinkurl: 0.000
18:15:38.298 feature call (loop) failed at index: 127
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"m"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.299 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.299 [print] testing xlinkurl:e
> Given url link 0.000
> When method HEAD 0.005
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:15:38.299 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: e
18:15:38.304 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
6.903
Scenario Outline Check dataset record in ngr voor 588a4cb1-b442-4ac1-87e4-40401e353166
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '588a4cb1-b442-4ac1-87e4-40401e353166' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.499
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '588a4cb1-b442-4ac1-87e4-40401e353166' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:38.821 [print] title:Jaarcijfers Landelijk Meetnet Luchtkwaliteit 2012
* print title 0.000
18:15:38.821 [print] Jaarcijfers Landelijk Meetnet Luchtkwaliteit 2012
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:38.822 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "588a4cb1-b442-4ac1-87e4-40401e353166" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 3.201
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:15:38.825 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:38.825 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.598
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"
}
> * print "testing xlinkurl: 0.000
18:15:39.424 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.424 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754
> Given url link 0.000
> When method HEAD 0.354
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:15:39.778 javax.net.ssl.SSLException: Connection reset, http call failed after 353 milliseconds for URL: https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754
18:15:39.778 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:15:39.779 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#b5ccab29-e2cc-4178-9f81-40c50e909754"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:15:39.779 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.779 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.543
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:40.324 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:40.325 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.698
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
13.123
Scenario Outline Check dataset record in ngr voor 07575774-57a1-4419-bab4-6c88fdeb02b2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '07575774-57a1-4419-bab4-6c88fdeb02b2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.519
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '07575774-57a1-4419-bab4-6c88fdeb02b2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:39.226 [print] title:Hydrografie waterschappen INSPIRE
* print title 0.000
18:15:39.226 [print] Hydrografie waterschappen INSPIRE
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:39.227 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/ETRS89",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "07575774-57a1-4419-bab4-6c88fdeb02b2" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 6.300
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/ETRS89}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/ETRS89"
}
> * print "testing xlinkurl: 0.000
18:15:39.230 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.230 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/ETRS89
> Given url link 0.000
> When method HEAD 0.295
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"
}
> * print "testing xlinkurl: 0.000
18:15:39.526 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.526 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2
> Given url link 0.000
> When method HEAD 0.327
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
18:15:39.854 status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy"
}
> * print "testing xlinkurl: 0.000
18:15:39.854 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 327, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records07575774-57a1-4419-bab4-6c88fdeb02b2, response: 
18:15:39.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:39.855 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/hy
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:40.532 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:40.532 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.996
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:30.461
Scenario Outline Check dataset record in ngr voor krw-782cab20-8328-45f1-a9b2-c27d07c14066
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'krw-782cab20-8328-45f1-a9b2-c27d07c14066' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.528
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'krw-782cab20-8328-45f1-a9b2-c27d07c14066' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:42.556 [print] title:Kaderrichtlijn Water - Deelstroomgebieden Nederland 2019 vlakken
* print title 0.000
18:15:42.556 [print] Kaderrichtlijn Water - Deelstroomgebieden Nederland 2019 vlakken
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:42.558 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "krw-782cab20-8328-45f1-a9b2-c27d07c14066" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 44.966
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:15:42.562 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:42.562 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.302
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066"
}
> * print "testing xlinkurl: 0.000
18:15:42.865 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:42.865 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/krw-782cab20-8328-45f1-a9b2-c27d07c14066
> Given url link 0.000
> When method HEAD 0.422
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:15:43.289 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:43.290 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:15:43.490 status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:15:43.490 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 199, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:15:43.491 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:43.491 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 6.019
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:15:49.512 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:49.512 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60
> Given url link 0.000
> When method HEAD 6.035
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:15:55.548 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:55.548 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60
> Given url link 0.000
> When method HEAD 6.081
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:16:01.631 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:01.631 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 6.125
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:16:07.757 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:07.757 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:16:08.068 status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:16:08.068 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 311, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:16:08.069 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:08.069 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:08.346 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:08.346 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.001
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:16:19.349 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:19.349 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:19.349 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:16:19.349 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:16:19.349 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:19.349 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:19.350 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:20.027 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:20.028 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:20.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:20.237 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:16:26.305 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:26.305 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.542
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:16:26.848 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:26.848 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.677
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:15.803
Scenario Outline Check dataset record in ngr voor 41023936-009d-48ec-a90d-c966895463c1
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '41023936-009d-48ec-a90d-c966895463c1' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.610
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '41023936-009d-48ec-a90d-c966895463c1' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:46.142 [print] title:Geluidszones rondom vliegvelden
* print title 0.000
18:15:46.142 [print] Geluidszones rondom vliegvelden
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:46.144 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/am"
]
* def id = "41023936-009d-48ec-a90d-c966895463c1" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 37.598
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/am}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:15:46.150 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:46.151 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.391
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1"
}
> * print "testing xlinkurl: 0.000
18:15:46.543 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:46.544 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=41023936-009d-48ec-a90d-c966895463c1
> Given url link 0.000
> When method HEAD 0.462
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:15:47.007 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:47.008 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.044
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:15:47.053 status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:47.053 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:15:47.053 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:47.053 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 0.691
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.002
18:15:47.749 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:47.750 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:15:47.965 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:47.966 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.679
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:48.647 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:48.647 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:15:48.814 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:48.814 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:15:48.981 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:48.982 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 15.986
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:16:04.969 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:04.970 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:05.136 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:05.137 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.776
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:16:16.914 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:16.914 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:17.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:17.081 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.984
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:23.067 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:23.067 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:23.068 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:23.068 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.002
18:16:23.068 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:23.070 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:23.071 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.672
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
24.823
Scenario Outline Check dataset record in ngr voor 29c17585-e702-463f-a5dc-99d34b17d333
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '29c17585-e702-463f-a5dc-99d34b17d333' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.520
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '29c17585-e702-463f-a5dc-99d34b17d333' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:15:52.288 [print] title:RDinfo
* print title 0.000
18:15:52.288 [print] RDinfo
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:15:52.291 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/EPSG:28992",
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/rs",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "29c17585-e702-463f-a5dc-99d34b17d333" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.149
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/EPSG:28992}, {link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/rs}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/EPSG:28992"
}
> * print "testing xlinkurl: 0.000
18:15:52.295 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:52.296 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/EPSG:28992
> Given url link 0.000
> When method HEAD 0.295
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"
}
> * print "testing xlinkurl: 0.000
18:15:52.592 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:52.592 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81
> Given url link 0.000
> When method HEAD 0.042
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:15:52.635 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 42 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81
18:15:52.635 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/rs"
}
> * print "testing xlinkurl: 0.000
18:15:52.635 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a81"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:15:52.636 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:52.636 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/rs
> Given url link 0.000
> When method HEAD 0.680
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:15:53.317 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:53.318 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:15:53.380 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:15:53.381 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.061
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
20.691
Scenario Outline Check dataset record in ngr voor 14657c9b-91e4-4355-8563-2911ad0e78e4
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '14657c9b-91e4-4355-8563-2911ad0e78e4' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.549
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '14657c9b-91e4-4355-8563-2911ad0e78e4' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:04.995 [print] title:Vervoersnetwerken - Gemeenschappelijke elementen (INSPIRE geharmoniseerd)
* print title 0.000
18:16:04.995 [print] Vervoersnetwerken - Gemeenschappelijke elementen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:04.997 [print] [
  "http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "14657c9b-91e4-4355-8563-2911ad0e78e4" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 10.069
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"
}
> * print "testing xlinkurl: 0.000
18:16:04.999 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:05.000 [print] testing xlinkurl:http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66
> Given url link 0.000
> When method HEAD 0.030
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:05.030 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 30 milliseconds for URL: http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66
18:16:05.030 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:16:05.031 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/7cdfa80a-cfbf-4324-978d-f1f141756b66"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:05.031 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:05.031 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.955
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:05.988 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:05.988 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.094
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:06.084 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:06.084 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 8.983
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:10.139
Scenario Outline Check dataset record in ngr voor 58d39928-f502-48c9-a8c1-03244dc181bf
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '58d39928-f502-48c9-a8c1-03244dc181bf' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.569
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '58d39928-f502-48c9-a8c1-03244dc181bf' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:07.303 [print] title:Geluidkaart Schiphol 2016 (Lnight)
* print title 0.000
18:16:07.303 [print] Geluidkaart Schiphol 2016 (Lnight)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.006
* print nlinks 0.001
18:16:07.311 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/epsg:28992",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationNight-dir-2002-49",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "58d39928-f502-48c9-a8c1-03244dc181bf" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 34.780
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/epsg:28992}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationNight-dir-2002-49}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/epsg:28992"
}
> * print "testing xlinkurl: 0.000
18:16:07.315 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:07.315 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/epsg:28992
> Given url link 0.000
> When method HEAD 0.353
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"
}
> * print "testing xlinkurl: 0.000
18:16:07.670 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:07.671 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
18:16:07.981 status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationNight-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:16:07.981 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records58d39928-f502-48c9-a8c1-03244dc181bf, response: 
18:16:07.982 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:07.982 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorAirportsNoiseExposureDelineationNight-dir-2002-49
> Given url link 0.000
> When method HEAD 13.049
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:16:21.034 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:21.034 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.060
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:21.096 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:21.096 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 20.996
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.062
Scenario Outline Check dataset record in ngr voor df15af6e-0d21-4437-a69f-802be3479bba
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'df15af6e-0d21-4437-a69f-802be3479bba' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.500
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'df15af6e-0d21-4437-a69f-802be3479bba' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:09.309 [print] title:Luchtfoto 2016 25cm RGB open data
* print title 0.000
18:16:09.309 [print] Luchtfoto 2016 25cm RGB open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:09.310 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b014",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "df15af6e-0d21-4437-a69f-802be3479bba" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.280
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b014}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:21.592 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"
}
> * print "testing xlinkurl: 0.000
18:16:09.313 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:09.313 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b014
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:09.314 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b014
18:16:09.314 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:16:09.314 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b014"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:09.314 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:09.315 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.685
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:10.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:10.001 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.071
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:10.074 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:10.074 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.098
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:16:21.173 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:21.173 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.411
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:21.585 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:21.586 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:21.586 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:21.586 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:21.586 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:21.587 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:21.588 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:21.589 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:21.589 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:21.590 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:21.590 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:21.591 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:21.591 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:21.591 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
22.606
Scenario Outline Check dataset record in ngr voor 1be28290-55fa-4486-b9d3-b9d147117863
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '1be28290-55fa-4486-b9d3-b9d147117863' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '1be28290-55fa-4486-b9d3-b9d147117863' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:16:14.822 [print] title:Luchtfoto 2016 25cm CIR open data
* print title 0.000
18:16:14.823 [print] Luchtfoto 2016 25cm CIR open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:14.825 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b015",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "1be28290-55fa-4486-b9d3-b9d147117863" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 11.048
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b015}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:25.875 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"
}
> * print "testing xlinkurl: 0.001
18:16:14.829 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:14.830 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b015
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:14.831 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b015
18:16:14.831 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:16:14.837 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b015"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:14.837 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:14.838 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.686
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:15.526 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:15.526 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.062
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:15.590 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.001
18:16:15.592 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.970
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:16:25.565 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:25.565 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.300
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:25.867 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:25.867 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:25.868 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:25.868 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:25.868 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:25.869 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:25.870 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:25.870 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:25.870 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
18:16:25.870 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:25.872 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:25.873 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:25.874 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:25.875 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
38.646
Scenario Outline Check dataset record in ngr voor 7c24ea89-074e-4c4f-91e3-d38e813e9cb6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '7c24ea89-074e-4c4f-91e3-d38e813e9cb6' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '7c24ea89-074e-4c4f-91e3-d38e813e9cb6' 0.001
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:15.583 [print] title:Luchtfoto 2017 25cm CIR open data
* print title 0.000
18:16:15.584 [print] Luchtfoto 2017 25cm CIR open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:15.586 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b018",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "7c24ea89-074e-4c4f-91e3-d38e813e9cb6" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 19.066
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b018}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:34.654 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"
}
> * print "testing xlinkurl: 0.000
18:16:15.591 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:15.591 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b018
> Given url link 0.000
> When method HEAD 0.035
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:15.626 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 34 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b018
18:16:15.626 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:16:15.627 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b018"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:15.627 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:15.628 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.676
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:16.306 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:16.306 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.056
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:16.363 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:16.363 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 17.991
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:16:34.356 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.356 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.292
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:34.649 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.650 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:34.650 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:34.650 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
18:16:34.650 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:34.652 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.652 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:34.653 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:34.653 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:34.653 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:34.653 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.653 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:34.653 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:34.653 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
3:22.163
Scenario Outline Check dataset record in ngr voor 71c2b7d2-a1a8-4836-b8d4-7247d331b04d
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '71c2b7d2-a1a8-4836-b8d4-7247d331b04d' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.505
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '71c2b7d2-a1a8-4836-b8d4-7247d331b04d' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:19.277 [print] title:CBS Provincies 2012
* print title 0.000
18:16:19.277 [print] CBS Provincies 2012
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:19.279 [print] [
  "http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc5023",
  ""
]
* def id = "71c2b7d2-a1a8-4836-b8d4-7247d331b04d" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:40.831
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc5023}, {link=}]
errors:
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60488, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
-------
feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:18:00.111 feature call (loop) failed at index: 10
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip"
}
> * print "testing xlinkurl: 0.000
18:16:19.285 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:19.285 [print] testing xlinkurl:http://geodata.nationaalgeoregister.nl/cbsprovincies/extract/cbsprovincies.zip
> Given url link 0.000
> When method HEAD 0.379
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd"
}
> * print "testing xlinkurl: 0.000
18:16:19.666 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:19.666 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/pd
> Given url link 0.000
> When method HEAD 0.682
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:20.350 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:20.350 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.085
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.001
18:16:20.438 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:20.439 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 4.033
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.001
18:16:24.474 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:24.475 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.220
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:24.697 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:24.698 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 2.006
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:26.706 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:26.706 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:32.763 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:32.763 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 1:0.698
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60488, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:17:33.461 status code was: 502, expected: 200, response time: 60488, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:33.462 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60488, url: http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other, response: 
18:17:33.462 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:33.463 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 23.459
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc5023"
}
> * print "testing xlinkurl: 0.000
18:17:56.923 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:56.923 [print] testing xlinkurl:https://tools.ietf.org/html/rfc5023
> Given url link 0.000
> When method HEAD 3.186
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:18:00.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:00.111 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:18:00.111 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:18:00.111 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
36.410
Scenario Outline Check dataset record in ngr voor adn73c4a-ef03-4785-b7f6-942e86b385f7
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'adn73c4a-ef03-4785-b7f6-942e86b385f7' 0.002
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.512
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn73c4a-ef03-4785-b7f6-942e86b385f7' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:22.109 [print] title:Bathymetrie Nederland - binnenwateren
* print title 0.000
18:16:22.109 [print] Bathymetrie Nederland - binnenwateren
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:16:22.112 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
]
* def id = "adn73c4a-ef03-4785-b7f6-942e86b385f7" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.948
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:16:22.116 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:22.116 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.362
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7"
}
> * print "testing xlinkurl: 0.000
18:16:22.480 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:22.480 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f7
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
18:16:22.793 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:22.793 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.278
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:16:23.072 status code was: 404, expected: 200, response time: 278, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:16:23.073 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 278, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:16:23.074 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:23.075 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 7.981
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:16:31.057 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:31.057 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.274
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:31.333 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:31.334 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.691
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:16:33.026 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:33.027 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:33.027 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:16:33.027 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:33.027 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:33.028 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:33.028 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:16:33.237 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:33.237 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.707
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:33.946 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:33.946 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.209
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.001
18:16:34.157 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.158 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.696
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:16:34.855 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.855 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.252
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:35.108 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:35.108 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 4.952
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.168
Scenario Outline Check dataset record in ngr voor 34e95842-4e4e-46de-9198-79e8cd4d30dc
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '34e95842-4e4e-46de-9198-79e8cd4d30dc' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.509
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '34e95842-4e4e-46de-9198-79e8cd4d30dc' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:24.256 [print] title:Geografische Namen (Nat) - Nederland
* print title 0.000
18:16:24.257 [print] Geografische Namen (Nat) - Nederland
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:24.258 [print] [
  "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd"
]
* def id = "34e95842-4e4e-46de-9198-79e8cd4d30dc" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.328
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"
}
> * print "testing xlinkurl: 0.003
18:16:24.266 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:24.266 [print] testing xlinkurl:https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc
> Given url link 0.000
> When method HEAD 0.279
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
18:16:24.545 status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn"
}
> * print "testing xlinkurl: 0.000
18:16:24.547 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 279, url: https://ngr.acceptatie.nationaalgeoregister.nl/geonetwork/srv/resources34e95842-4e4e-46de-9198-79e8cd4d30dc, response: 
18:16:24.547 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:24.548 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/gn
> Given url link 0.000
> When method HEAD 0.686
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.001
18:16:25.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:25.236 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.084
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:25.321 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:25.321 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.051
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:36.373 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:36.374 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hy/4.0/HydroBase.xsd
> Given url link 0.000
> When method HEAD 0.214
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
31.027
Scenario Outline Check dataset record in ngr voor effe1ab0-073d-437c-af13-df5c5e07d6cd
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'effe1ab0-073d-437c-af13-df5c5e07d6cd' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.519
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'effe1ab0-073d-437c-af13-df5c5e07d6cd' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:26.397 [print] title:CBS gebiedsindelingen
* print title 0.000
18:16:26.398 [print] CBS gebiedsindelingen
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.004
18:16:26.403 [print] [
  "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3",
  "https://tools.ietf.org/html/rfc5023",
  ""
]
* def id = "effe1ab0-073d-437c-af13-df5c5e07d6cd" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 15.253
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://www.iana.org/assignments/media-types/application/geopackage+sqlite3}, {link=https://tools.ietf.org/html/rfc5023}, {link=}]
errors:
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:41.657 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml"
}
> * print "testing xlinkurl: 0.000
18:16:26.410 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:26.411 [print] testing xlinkurl:https://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/atom/cbsgebiedsindelingen.xml
> Given url link 0.000
> When method HEAD 0.415
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:26.827 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:26.827 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:26.894 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:26.895 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 14.015
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/geopackage+sqlite3"
}
> * print "testing xlinkurl: 0.000
18:16:40.911 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:40.912 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/geopackage+sqlite3
> Given url link 0.000
> When method HEAD 0.170
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc5023"
}
> * print "testing xlinkurl: 0.000
18:16:41.083 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:41.084 [print] testing xlinkurl:https://tools.ietf.org/html/rfc5023
> Given url link 0.000
> When method HEAD 0.571
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:16:41.656 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:41.656 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:16:41.657 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:16:41.657 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.194
Scenario Outline Check dataset record in ngr voor 3eebf700-5abf-42e4-826c-03cfb497e366
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '3eebf700-5abf-42e4-826c-03cfb497e366' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.560
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '3eebf700-5abf-42e4-826c-03cfb497e366' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:28.090 [print] title:Vervoersnetwerken
* print title 0.000
18:16:28.090 [print] Vervoersnetwerken
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:16:28.092 [print] [
  "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "https://www.iana.org/assignments/media-types/application/gml+xml"
]
* def id = "3eebf700-5abf-42e4-826c-03cfb497e366" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.315
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"
}
> * print "testing xlinkurl: 0.000
18:16:28.096 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:28.097 [print] testing xlinkurl:http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75
> Given url link 0.000
> When method HEAD 0.038
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:28.134 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 37 milliseconds for URL: http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75
18:16:28.135 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn"
}
> * print "testing xlinkurl: 0.000
18:16:28.135 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/06b6c650-cdb1-11dd-ad8b-0800200c9a75"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:28.138 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:28.138 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/tn
> Given url link 0.000
> When method HEAD 0.692
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:28.832 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:28.832 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.051
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:28.885 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:28.885 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.071
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:16:34.957 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:34.957 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.285
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:16:35.244 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:35.244 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:45.173
Scenario Outline Check dataset record in ngr voor 998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '998ba1dc-f6a6-49a3-a021-51f30d9b1d0e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.498
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '998ba1dc-f6a6-49a3-a021-51f30d9b1d0e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:35.155 [print] title:Wet Ammoniak en Veehouderij gebieden
* print title 0.000
18:16:35.155 [print] Wet Ammoniak en Veehouderij gebieden
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:35.157 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ps",
  "https://www.iana.org/assignments/media-types/image/png",
  "https://www.iana.org/assignments/media-types/image/png",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://www.iana.org/assignments/media-types/application/gml+xml",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "",
  "http://inspire.ec.europa.eu/id/document/tg/ps"
]
* def id = "998ba1dc-f6a6-49a3-a021-51f30d9b1d0e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 52.338
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=https://www.iana.org/assignments/media-types/image/png}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://www.iana.org/assignments/media-types/application/gml+xml}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=}, {link=http://inspire.ec.europa.eu/id/document/tg/ps}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 30, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034"
}
> * print "testing xlinkurl: 0.000
18:16:35.163 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:35.163 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/http://www.opengis.net/def/crs/EPSG/0/3034
> Given url link 0.000
> When method HEAD 0.352
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e"
}
> * print "testing xlinkurl: 0.000
18:16:35.517 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:35.517 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/csw?SERVICE=CSW&version=2.0.2&REQUEST=GetRecordById&elementSetName=full&OutputSchema=http://www.isotc211.org/2005/gmd&ID=998ba1dc-f6a6-49a3-a021-51f30d9b1d0e
> Given url link 0.000
> When method HEAD 0.457
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:35.975 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:35.976 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.030
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 30, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:16:36.006 status code was: 404, expected: 200, response time: 30, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:36.006 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 30, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:16:36.006 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:36.006 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.019
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:42.028 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.028 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:16:42.236 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.237 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:16:42.924 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.925 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.168
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/image/png"
}
> * print "testing xlinkurl: 0.000
18:16:43.094 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:43.094 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/image/png
> Given url link 0.000
> When method HEAD 0.166
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:43.261 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:43.262 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:16:54.340 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:54.340 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.165
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:16:54.507 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:54.507 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 11.059
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.iana.org/assignments/media-types/application/gml+xml"
}
> * print "testing xlinkurl: 0.000
18:17:05.567 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:05.567 [print] testing xlinkurl:https://www.iana.org/assignments/media-types/application/gml+xml
> Given url link 0.000
> When method HEAD 0.220
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:05.789 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:05.789 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.021
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:26.812 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:26.812 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:26.812 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:26.812 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:17:26.812 feature call (loop) failed at index: 13
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:26.813 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:26.813 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
37.805
Scenario Outline Check dataset record in ngr voor 25294679-adb9-4c39-a93b-6954ff9414ac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '25294679-adb9-4c39-a93b-6954ff9414ac' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.502
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '25294679-adb9-4c39-a93b-6954ff9414ac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:35.916 [print] title:Waterstanden en afvoeren verwacht - Rijkswaterstaat
* print title 0.000
18:16:35.916 [print] Waterstanden en afvoeren verwacht - Rijkswaterstaat
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:35.918 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ef",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "25294679-adb9-4c39-a93b-6954ff9414ac" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 18.652
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/28}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ef}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:16:35.923 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:35.923 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.303
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac"
}
> * print "testing xlinkurl: 0.000
18:16:36.228 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:36.229 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/25294679-adb9-4c39-a93b-6954ff9414ac
> Given url link 0.000
> When method HEAD 0.311
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
18:16:36.541 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:36.542 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:16:36.743 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"
}
> * print "testing xlinkurl: 0.000
18:16:36.744 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:16:36.745 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:36.745 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/28
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
18:16:36.946 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.001
18:16:36.948 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/28"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/28, response: 
18:16:36.950 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:36.951 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 14.024
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:16:50.976 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:50.976 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.271
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:51.249 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:51.250 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 1.709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:16:52.961 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:52.961 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:52.962 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:16:52.962 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd"
}
> * print "testing xlinkurl: 0.000
18:16:52.962 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:16:52.963 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:52.963 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ef"
}
> * print "testing xlinkurl: 0.001
18:16:53.173 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:53.173 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ef
> Given url link 0.000
> When method HEAD 0.704
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:16:53.878 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:53.879 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.693
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
25.670
Scenario Outline Check dataset record in ngr voor f8d840bc-18df-4449-b797-b9adcb81d3ec
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'f8d840bc-18df-4449-b797-b9adcb81d3ec' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.528
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'f8d840bc-18df-4449-b797-b9adcb81d3ec' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:40.593 [print] title:Emissies naar lucht en water in 2015 vanuit de industrie
* print title 0.000
18:16:40.594 [print] Emissies naar lucht en water in 2015 vanuit de industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:40.595 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "f8d840bc-18df-4449-b797-b9adcb81d3ec" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 12.569
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:16:40.599 [print]
> * def link = __arg.link 0.008
> * print "testing xlinkurl:" + link 0.000
18:16:40.608 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.543
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"
}
> * print "testing xlinkurl: 0.000
18:16:41.152 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:41.152 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166
> Given url link 0.000
> When method HEAD 0.356
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:16:41.508 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166
18:16:41.509 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:16:41.509 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#c6d62f69-7be0-4c19-a4af-d146c6a3c166"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:16:41.510 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:41.510 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.548
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:42.059 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.059 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 11.106
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.564
Scenario Outline Check dataset record in ngr voor d8f370e8-123c-4ab3-9410-04f728327ac6
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd8f370e8-123c-4ab3-9410-04f728327ac6' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.517
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd8f370e8-123c-4ab3-9410-04f728327ac6' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.005
* print 'title:' + title 0.000
18:16:42.184 [print] title:Gemeten Ozon concentraties in buitenlucht.
* print title 0.000
18:16:42.185 [print] Gemeten Ozon concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:16:42.187 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "d8f370e8-123c-4ab3-9410-04f728327ac6" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.518
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:16:42.192 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.192 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.540
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"
}
> * print "testing xlinkurl: 0.000
18:16:42.734 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.734 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:16:43.090 javax.net.ssl.SSLException: Connection reset, http call failed after 356 milliseconds for URL: https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078
18:16:43.090 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:16:43.090 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#fd9c4f87-026e-4681-8d94-9702f3c83078"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:16:43.091 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:43.091 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.546
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:43.638 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:43.638 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.054
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:43.693 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:43.693 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.013
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
15.328
Scenario Outline Check dataset record in ngr voor 4617f0e0-6af4-4ac0-9044-31df9d03071c
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4617f0e0-6af4-4ac0-9044-31df9d03071c' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.505
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4617f0e0-6af4-4ac0-9044-31df9d03071c' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.001
* print 'title:' + title 0.000
18:16:42.603 [print] title:Gebieden in de territoriale zee
* print title 0.000
18:16:42.603 [print] Gebieden in de territoriale zee
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:42.605 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "4617f0e0-6af4-4ac0-9044-31df9d03071c" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.409
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"
}
> * print "testing xlinkurl: 0.000
18:16:42.610 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.610 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c
> Given url link 0.000
> When method HEAD 0.310
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
18:16:42.921 status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:42.921 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 310, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4617f0e0-6af4-4ac0-9044-31df9d03071c, response: 
18:16:42.922 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:42.922 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.079
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:43.003 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:43.003 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.013
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
24.455
Scenario Outline Check dataset record in ngr voor b59f06c0-dce5-11e3-9c10-901b0e19e163
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b59f06c0-dce5-11e3-9c10-901b0e19e163' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.534
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b59f06c0-dce5-11e3-9c10-901b0e19e163' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:46.623 [print] title:Aardbevingen Nederland (KNMI)
* print title 0.000
18:16:46.623 [print] Aardbevingen Nederland (KNMI)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:46.624 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/nz",
  "https://creativecommons.org/publicdomain/zero/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "b59f06c0-dce5-11e3-9c10-901b0e19e163" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 11.963
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/EPSG:4326}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/nz}, {link=https://creativecommons.org/publicdomain/zero/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/EPSG:4326"
}
> * print "testing xlinkurl: 0.000
18:16:46.629 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:46.629 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/EPSG:4326
> Given url link 0.000
> When method HEAD 0.355
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"
}
> * print "testing xlinkurl: 0.000
18:16:46.987 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:46.987 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
18:16:47.296 status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/nz"
}
> * print "testing xlinkurl: 0.000
18:16:47.296 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records49807edc-0007-41aa-8809-d381f6713de4, response: 
18:16:47.297 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:47.297 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/nz
> Given url link 0.000
> When method HEAD 0.781
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/zero/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:48.086 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:48.087 [print] testing xlinkurl:https://creativecommons.org/publicdomain/zero/*/deed.nl
> Given url link 0.000
> When method HEAD 0.044
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:16:48.132 status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:48.133 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/zero/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 44, url: https://creativecommons.org/publicdomain/zero/*/deed.nl, response: 
18:16:48.134 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:48.134 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.998
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:16:58.135 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:58.135 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.454
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
23.957
Scenario Outline Check dataset record in ngr voor b4ae622c-6201-49d8-bd2e-f7fce9206a1e
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'b4ae622c-6201-49d8-bd2e-f7fce9206a1e' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.500
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'b4ae622c-6201-49d8-bd2e-f7fce9206a1e' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:50.211 [print] title:Gebouwen (INSPIRE geharmoniseerd)
* print title 0.000
18:16:50.211 [print] Gebouwen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:16:50.214 [print] [
  "http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "b4ae622c-6201-49d8-bd2e-f7fce9206a1e" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 11.727
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"
}
> * print "testing xlinkurl: 0.000
18:16:50.217 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:50.218 [print] testing xlinkurl:http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3
> Given url link 0.000
> When method HEAD 0.048
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:50.264 java.net.UnknownHostException: kadaster: Temporary failure in name resolution, http call failed after 39 milliseconds for URL: http://kadaster/80b2d12c-32be-54fg-b6d3—34f4ffc06cf3
18:16:50.266 http request failed: 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu"
}
> * print "testing xlinkurl: 0.000
18:16:50.267 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/80b2d12c-32be-54fg-b6d3\u201434f4ffc06cf3"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster: Temporary failure in name resolution
18:16:50.268 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:50.269 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/bu
> Given url link 0.000
> When method HEAD 0.680
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:50.951 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:50.952 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 10.989
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
58.156
Scenario Outline Check dataset record in ngr voor e80ad426-1392-4349-9f80-14dae5f1bf57
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'e80ad426-1392-4349-9f80-14dae5f1bf57' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.531
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'e80ad426-1392-4349-9f80-14dae5f1bf57' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:50.552 [print] title:Kadastrale Percelen (INSPIRE geharmoniseerd)
* print title 0.000
18:16:50.553 [print] Kadastrale Percelen (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:50.554 [print] [
  "http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/cp",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "e80ad426-1392-4349-9f80-14dae5f1bf57" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 28.810
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/cp}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"
}
> * print "testing xlinkurl: 0.000
18:16:50.558 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:50.559 [print] testing xlinkurl:http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:50.559 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344
18:16:50.559 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/cp"
}
> * print "testing xlinkurl: 0.000
18:16:50.559 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/0f9b8c87-80a6-435f-b3b3-e07c3918d344"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:50.560 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:50.560 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/cp
> Given url link 0.000
> When method HEAD 0.670
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:51.231 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:51.232 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.055
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:51.288 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:51.288 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 28.077
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
30.805
Scenario Outline Check dataset record in ngr voor 5b274449-b6c2-4672-a32f-e0bd40975a53
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '5b274449-b6c2-4672-a32f-e0bd40975a53' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.535
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '5b274449-b6c2-4672-a32f-e0bd40975a53' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:53.706 [print] title:Luchtfoto 2018 25cm RGB open data
* print title 0.000
18:16:53.706 [print] Luchtfoto 2018 25cm RGB open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:16:53.708 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b020",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "5b274449-b6c2-4672-a32f-e0bd40975a53" 0.005
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 15.135
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b020}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:08.848 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"
}
> * print "testing xlinkurl: 0.000
18:16:53.722 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:53.722 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b020
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:53.724 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b020
18:16:53.724 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:16:53.725 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b020"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:53.725 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:53.725 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:54.411 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:54.411 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.067
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:54.479 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:54.480 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 14.073
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:17:08.555 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:08.555 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.286
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:08.842 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:08.842 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:08.843 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:08.843 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:08.844 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:08.844 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:08.845 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.001
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:08.845 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:08.846 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:08.846 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:08.847 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:08.847 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:08.848 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:08.848 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
42.847
Scenario Outline Check dataset record in ngr voor 74aca3eb-c38b-4214-9537-e0abc69e11b5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '74aca3eb-c38b-4214-9537-e0abc69e11b5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.526
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '74aca3eb-c38b-4214-9537-e0abc69e11b5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:55.103 [print] title:Luchtfoto 2017 25cm RGB open data
* print title 0.000
18:16:55.103 [print] Luchtfoto 2017 25cm RGB open data
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:55.105 [print] [
  "http://kadaster/2482250f-3b00-4439-9f93-f3118229b017",
  "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi",
  "http://creativecommons.org/licenses/by/4.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://www.opengeospatial.org/standards/wmts",
  "",
  "",
  ""
]
* def id = "74aca3eb-c38b-4214-9537-e0abc69e11b5" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 21.158
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://kadaster/2482250f-3b00-4439-9f93-f3118229b017}, {link=http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi}, {link=http://creativecommons.org/licenses/by/4.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://www.opengeospatial.org/standards/wmts}, {link=}, {link=}, {link=}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:16.266 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"
}
> * print "testing xlinkurl: 0.000
18:16:55.109 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.109 [print] testing xlinkurl:http://kadaster/2482250f-3b00-4439-9f93-f3118229b017
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:55.110 java.net.UnknownHostException: kadaster, http call failed after 0 milliseconds for URL: http://kadaster/2482250f-3b00-4439-9f93-f3118229b017
18:16:55.110 http request failed: 
java.net.UnknownHostException: kadaster
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi"
}
> * print "testing xlinkurl: 0.000
18:16:55.110 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://kadaster/2482250f-3b00-4439-9f93-f3118229b017"}
checkxlinkurl.template.feature:14 - 
java.net.UnknownHostException: kadaster
18:16:55.111 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.111 [print] testing xlinkurl:http://www.eionet.europa.eu/gemet/nl/inspire-theme/oi
> Given url link 0.000
> When method HEAD 0.683
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/licenses/by/4.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:16:55.795 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.796 [print] testing xlinkurl:http://creativecommons.org/licenses/by/4.0/deed.nl
> Given url link 0.000
> When method HEAD 0.132
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:16:55.929 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.929 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 20.029
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengeospatial.org/standards/wmts"
}
> * print "testing xlinkurl: 0.000
18:17:15.960 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:15.960 [print] testing xlinkurl:http://www.opengeospatial.org/standards/wmts
> Given url link 0.000
> When method HEAD 0.298
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:16.260 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:16.260 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:16.261 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:16.261 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:16.261 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:16.261 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:16.261 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:16.262 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:16.262 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.000
18:17:16.262 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:16.262 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:16.262 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.003
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:16.264 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:16.266 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:41.819
Scenario Outline Check dataset record in ngr voor adn73c4a-ef03-4785-b7f6-942e86b385f5
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'adn73c4a-ef03-4785-b7f6-942e86b385f5' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.500
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'adn73c4a-ef03-4785-b7f6-942e86b385f5' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:55.188 [print] title:Bathymetrie Nederland - kust
* print title 0.000
18:16:55.188 [print] Bathymetrie Nederland - kust
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.001
18:16:55.191 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/el",
  "http://www.opengis.net/def/serviceType/ogc/wcs",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
]
* def id = "adn73c4a-ef03-4785-b7f6-942e86b385f5" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:20.658
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/10}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/el}, {link=http://www.opengis.net/def/serviceType/ogc/wcs}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60487, url: http://inspire.ec.europa.eu/theme#, response: 
-------
feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5"
}
> * print "testing xlinkurl: 0.000
18:16:55.195 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.195 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/adn73c4a-ef03-4785-b7f6-942e86b385f5
> Given url link 0.000
> When method HEAD 0.335
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"
}
> * print "testing xlinkurl: 0.000
18:16:55.531 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.532 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/10
> Given url link 0.000
> When method HEAD 0.275
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:16:55.808 status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:16:55.808 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/10"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 275, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/10, response: 
18:16:55.808 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:55.808 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 1:0.698
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60487, url: http://inspire.ec.europa.eu/theme#, response: 
18:17:56.507 status code was: 502, expected: 200, response time: 60487, url: http://inspire.ec.europa.eu/theme#, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:17:56.507 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/theme#"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60487, url: http://inspire.ec.europa.eu/theme#, response: 
18:17:56.508 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:56.509 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.276
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:56.786 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:56.787 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 10.988
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:18:07.777 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:07.777 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:18:07.777 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:18:07.777 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:18:07.777 feature call (loop) failed at index: 5
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:18:07.778 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:07.778 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:18:07.987 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:07.987 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.687
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd"
}
> * print "testing xlinkurl: 0.000
18:18:08.675 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:08.675 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/el-bas/4.0/ElevationBaseTypes.xsd
> Given url link 0.000
> When method HEAD 0.210
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/el"
}
> * print "testing xlinkurl: 0.000
18:18:08.887 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:08.887 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/el
> Given url link 0.000
> When method HEAD 0.671
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/serviceType/ogc/wcs"
}
> * print "testing xlinkurl: 0.000
18:18:09.561 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:09.561 [print] testing xlinkurl:http://www.opengis.net/def/serviceType/ogc/wcs
> Given url link 0.000
> When method HEAD 0.251
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:18:09.813 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:09.813 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.037
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:50.177
Scenario Outline Check dataset record in ngr voor wt-83730-e750-485a-9c0c-39bf9be72cf8
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'wt-83730-e750-485a-9c0c-39bf9be72cf8' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.515
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'wt-83730-e750-485a-9c0c-39bf9be72cf8' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:16:59.108 [print] title:Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2016 (INSPIRE geharmoniseerd)
* print title 0.000
18:16:59.108 [print] Menselijke gezondheid en veiligheid - geluidbelasting rijkswegen 2016 (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.001
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:16:59.111 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "wt-83730-e750-485a-9c0c-39bf9be72cf8" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 54.832
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/18}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 205, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:16:59.117 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:59.117 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.425
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8"
}
> * print "testing xlinkurl: 0.000
18:16:59.544 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:59.544 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/wt-83730-e750-485a-9c0c-39bf9be72cf8
> Given url link 0.000
> When method HEAD 0.315
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"
}
> * print "testing xlinkurl: 0.000
18:16:59.860 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:16:59.860 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/18
> Given url link 0.000
> When method HEAD 0.205
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 205, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:17:00.066 status code was: 404, expected: 200, response time: 205, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:17:00.066 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/18"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 205, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/18, response: 
18:17:00.067 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:00.067 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 16.002
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49"
}
> * print "testing xlinkurl: 0.000
18:17:16.071 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:16.071 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/MajorRoadsNoiseExposureDelineationDEN-dir-2002-49
> Given url link 0.000
> When method HEAD 16.929
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:17:33.002 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:33.002 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 6.494
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:17:39.498 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:39.498 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.394
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:17:39.893 status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:17:39.893 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 394, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:17:39.894 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:39.894 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.272
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:40.168 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:40.169 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.125
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd"
}
> * print "testing xlinkurl: 0.000
18:17:46.295 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:46.295 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/hh/4.0/HumanHealth.xsd
> Given url link 0.000
> When method HEAD 0.208
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:46.504 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:46.504 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 6.013
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:17:52.519 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:52.519 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.666
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:17:53.187 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:53.188 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.756
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
4.669
Scenario Outline Check dataset record in ngr voor afc450bd-65b3-4e59-b0fb-619869bf6ada
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'afc450bd-65b3-4e59-b0fb-619869bf6ada' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'afc450bd-65b3-4e59-b0fb-619869bf6ada' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:02.459 [print] title:Landelijk grondwaterregister - Faciliteiten voor productie en industrie
* print title 0.000
18:17:02.459 [print] Landelijk grondwaterregister - Faciliteiten voor productie en industrie
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.001
* print nlinks 0.000
18:17:02.461 [print] [
  "",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "afc450bd-65b3-4e59-b0fb-619869bf6ada" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 2.079
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": ""
}
> * print "testing xlinkurl: 0.001
18:17:02.471 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:02.471 [print] testing xlinkurl:
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:02.472 org.apache.http.client.ClientProtocolException, http call failed after 0 milliseconds for URL: 
18:17:02.472 http request failed: 
org.apache.http.client.ClientProtocolException
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:17:02.472 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":""}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException
18:17:02.473 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:02.474 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.065
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:02.540 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:02.540 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 2.000
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
35.763
Scenario Outline Check dataset record in ngr voor d3c9efd6-fca7-49d6-92bb-5f507abece90
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd3c9efd6-fca7-49d6-92bb-5f507abece90' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.530
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd3c9efd6-fca7-49d6-92bb-5f507abece90' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:08.299 [print] title:Gemeten Ammoniak concentraties in buitenlucht.
* print title 0.000
18:17:08.299 [print] Gemeten Ammoniak concentraties in buitenlucht.
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:17:08.300 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "d3c9efd6-fca7-49d6-92bb-5f507abece90" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.616
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:17:08.303 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:08.303 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.529
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"
}
> * print "testing xlinkurl: 0.000
18:17:08.833 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:08.834 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:17:09.189 javax.net.ssl.SSLException: Connection reset, http call failed after 355 milliseconds for URL: https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d
18:17:09.189 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:17:09.191 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#4504a4b2-3179-44b3-a5a9-b67b693c514d"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:17:09.192 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.192 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.582
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:17:09.775 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.775 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.065
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:09.841 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.841 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 16.076
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
35.420
Scenario Outline Check dataset record in ngr voor d9baa847-4652-4588-abe1-0b050f40f27f
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = 'd9baa847-4652-4588-abe1-0b050f40f27f' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.502
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == 'd9baa847-4652-4588-abe1-0b050f40f27f' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:09.354 [print] title:Ziekenhuizen in Nederland (september 2013)
* print title 0.000
18:17:09.354 [print] Ziekenhuizen in Nederland (september 2013)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:17:09.356 [print] [
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e",
  "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
]
* def id = "d9baa847-4652-4588-abe1-0b050f40f27f" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 17.457
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e}, {link=http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}]
errors:
-------
feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:17:09.359 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.359 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.534
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"
}
> * print "testing xlinkurl: 0.000
18:17:09.895 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:09.895 [print] testing xlinkurl:https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e
> Given url link 0.000
> When method HEAD 0.355
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:17:10.249 javax.net.ssl.SSLException: Connection reset, http call failed after 354 milliseconds for URL: https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e
18:17:10.250 http request failed: 
javax.net.ssl.SSLException: Connection reset
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu"
}
> * print "testing xlinkurl: 0.000
18:17:10.251 feature call (loop) failed at index: 1
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.rivm.nl/inspire/id#1e3a98db-5d5e-4e61-8b64-1d132ddb439e"}
checkxlinkurl.template.feature:14 - 
javax.net.ssl.SSLException: Connection reset
18:17:10.251 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:10.252 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Rijksinstituut_voor_Volksgezondheid_en_Milieu
> Given url link 0.000
> When method HEAD 0.536
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:10.790 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:10.790 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 16.024
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
14.699
Scenario Outline Check dataset record in ngr voor 4cda487b-c467-490c-a843-6563fec016be
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '4cda487b-c467-490c-a843-6563fec016be' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.506
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '4cda487b-c467-490c-a843-6563fec016be' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:16.776 [print] title:Aansluitende zone volgens UNCLOS - Noordzee
* print title 0.000
18:17:16.776 [print] Aansluitende zone volgens UNCLOS - Noordzee
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:17:16.778 [print] [
  "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be",
  "http://creativecommons.org/publicdomain/mark/1.0/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://tools.ietf.org/html/rfc4287"
]
* def id = "4cda487b-c467-490c-a843-6563fec016be" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 7.095
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be}, {link=http://creativecommons.org/publicdomain/mark/1.0/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://tools.ietf.org/html/rfc4287}]
errors:
-------
feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"
}
> * print "testing xlinkurl: 0.000
18:17:16.781 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:16.781 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be
> Given url link 0.000
> When method HEAD 0.455
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
18:17:17.237 status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://creativecommons.org/publicdomain/mark/1.0/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:17:17.239 feature call (loop) failed at index: 0
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 455, url: https://www.nationaalgeoregister.nl/geonetwork/srv/api/records4cda487b-c467-490c-a843-6563fec016be, response: 
18:17:17.240 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:17.240 [print] testing xlinkurl:http://creativecommons.org/publicdomain/mark/1.0/deed.nl
> Given url link 0.000
> When method HEAD 0.066
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:17.308 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:17.308 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 6.042
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:17:23.352 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:23.352 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.522
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:6.179
Scenario Outline Check dataset record in ngr voor 110f9ec6-4464-462e-9765-83d90cefbeac
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '110f9ec6-4464-462e-9765-83d90cefbeac' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.541
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '110f9ec6-4464-462e-9765-83d90cefbeac' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:19.912 [print] title:Kaderrichtlijn Water - Deelstroomgebieden Nederland EU2015
* print title 0.000
18:17:19.912 [print] Kaderrichtlijn Water - Deelstroomgebieden Nederland EU2015
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.013
18:17:19.927 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24",
  "http://inspire.ec.europa.eu/theme#",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "http://inspire.ec.europa.eu/id/document/tg/am",
  "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "https://tools.ietf.org/html/rfc4287",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "110f9ec6-4464-462e-9765-83d90cefbeac" 0.002
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:2.822
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/24}, {link=http://inspire.ec.europa.eu/theme#}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=http://inspire.ec.europa.eu/id/document/tg/am}, {link=http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=https://tools.ietf.org/html/rfc4287}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
-------
feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:17:19.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:19.938 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.365
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac"
}
> * print "testing xlinkurl: 0.000
18:17:20.304 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:20.304 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/110f9ec6-4464-462e-9765-83d90cefbeac
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"
}
> * print "testing xlinkurl: 0.000
18:17:20.618 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:20.618 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/24
> Given url link 0.000
> When method HEAD 0.199
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:17:20.818 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:17:20.818 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/24"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/24, response: 
18:17:20.818 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:20.818 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 11.117
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60"
}
> * print "testing xlinkurl: 0.000
18:17:31.937 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:31.938 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/RiverBasinDistrictsSubUnits-dir-2000-60
> Given url link 0.000
> When method HEAD 6.062
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60"
}
> * print "testing xlinkurl: 0.000
18:17:38.001 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:38.001 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/ManagementUnits-dir-2007-60
> Given url link 0.000
> When method HEAD 1.389
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#"
}
> * print "testing xlinkurl: 0.000
18:17:39.392 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:39.392 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset#
> Given url link 0.000
> When method HEAD 0.678
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"
}
> * print "testing xlinkurl: 0.000
18:17:40.072 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:40.073 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset
> Given url link 0.000
> When method HEAD 0.309
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:17:40.383 status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:17:40.383 feature call (loop) failed at index: 7
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset"}
checkxlinkurl.template.feature:15 - status code was: 500, expected: 200, response time: 309, url: https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistPrioritydataset-Prioritydataset, response: 
18:17:40.384 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:40.384 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:40.658 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:40.658 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 12.980
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/am"
}
> * print "testing xlinkurl: 0.000
18:17:53.640 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:53.640 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/am
> Given url link 0.000
> When method HEAD 0.667
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd"
}
> * print "testing xlinkurl: 0.000
18:17:54.309 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:54.309 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/am/4.0/AreaManagementRestrictionRegulationZone.xsd
> Given url link 0.000
> When method HEAD 0.207
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[12] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:54.532 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:54.532 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 21.085
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[13] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:18:15.619 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:15.620 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.989
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[14] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://tools.ietf.org/html/rfc4287"
}
> * print "testing xlinkurl: 0.000
18:18:21.610 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:21.610 [print] testing xlinkurl:https://tools.ietf.org/html/rfc4287
> Given url link 0.000
> When method HEAD 0.448
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[15] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:18:22.061 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:22.061 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.690
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
1:36.092
Scenario Outline Check dataset record in ngr voor 68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2' 0.001
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.525
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:24.404 [print] title:Landelijk zoet en zoutwatermeetnet - Rijkswaterstaat
* print title 0.000
18:17:24.404 [print] Landelijk zoet en zoutwatermeetnet - Rijkswaterstaat
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:17:24.405 [print] [
  "http://www.opengis.net/def/crs/EPSG/0/5730",
  "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2",
  "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20",
  "http://inspire.ec.europa.eu/theme#",
  "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "urn:ogc:def:crs:EPSG::5709",
  "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd",
  "http://inspire.ec.europa.eu/id/document/tg/ef",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other",
  "http://inspire.ec.europa.eu/id/document/tg/au"
]
* def id = "68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2" 0.000
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 47.784
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://www.opengis.net/def/crs/EPSG/0/5730}, {link=https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2}, {link=http://rdfdata.eionet.europa.eu/inspirethemes/themes/20}, {link=http://inspire.ec.europa.eu/theme#}, {link=https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=urn:ogc:def:crs:EPSG::5709}, {link=http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd}, {link=http://inspire.ec.europa.eu/id/document/tg/ef}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other}, {link=http://inspire.ec.europa.eu/id/document/tg/au}]
errors:
-------
feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
-------
feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://www.opengis.net/def/crs/EPSG/0/5730"
}
> * print "testing xlinkurl: 0.000
18:17:24.408 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:24.408 [print] testing xlinkurl:http://www.opengis.net/def/crs/EPSG/0/5730
> Given url link 0.000
> When method HEAD 0.305
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2"
}
> * print "testing xlinkurl: 0.000
18:17:24.715 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:24.715 [print] testing xlinkurl:https://www.nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/68ebd5c9-0ea1-4f22-9907-ec4c063cd3e2
> Given url link 0.000
> When method HEAD 0.312
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"
}
> * print "testing xlinkurl: 0.000
18:17:25.029 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:25.029 [print] testing xlinkurl:http://rdfdata.eionet.europa.eu/inspirethemes/themes/20
> Given url link 0.000
> When method HEAD 0.200
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:17:25.230 status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/theme#"
}
> * print "testing xlinkurl: 0.000
18:17:25.230 feature call (loop) failed at index: 2
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://rdfdata.eionet.europa.eu/inspirethemes/themes/20"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 200, url: http://rdfdata.eionet.europa.eu/inspirethemes/themes/20, response: 
18:17:25.231 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:25.231 [print] testing xlinkurl:http://inspire.ec.europa.eu/theme#
> Given url link 0.000
> When method HEAD 21.070
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope"
}
> * print "testing xlinkurl: 0.000
18:17:46.302 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:46.302 [print] testing xlinkurl:https://ngr.geocat.live/geonetwork/srv/eng/thesaurus.download?ref=external.theme.httpinspireeceuropaeumetadatacodelistSpatialScope-SpatialScope
> Given url link 0.000
> When method HEAD 0.273
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:17:46.576 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:46.576 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 7.052
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "urn:ogc:def:crs:EPSG::5709"
}
> * print "testing xlinkurl: 0.000
18:17:53.630 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:53.630 [print] testing xlinkurl:urn:ogc:def:crs:EPSG::5709
> Given url link 0.000
> When method HEAD 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:17:53.630 org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709, http call failed after 0 milliseconds for URL: urn:ogc:def:crs:EPSG::5709
18:17:53.630 http request failed: 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd"
}
> * print "testing xlinkurl: 0.000
18:17:53.630 feature call (loop) failed at index: 6
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"urn:ogc:def:crs:EPSG::5709"}
checkxlinkurl.template.feature:14 - 
org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: urn:ogc:def:crs:EPSG::5709
18:17:53.630 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:53.631 [print] testing xlinkurl:http://inspire.ec.europa.eu/schemas/ef/4.0/EnvironmentalMonitoringFacilities.xsd
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/ef"
}
> * print "testing xlinkurl: 0.000
18:17:53.853 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:53.853 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/ef
> Given url link 0.000
> When method HEAD 0.673
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[9] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:17:54.529 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:54.530 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 10.991
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[10] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other"
}
> * print "testing xlinkurl: 0.000
18:18:05.523 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:05.523 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType/other
> Given url link 0.000
> When method HEAD 5.981
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[11] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/id/document/tg/au"
}
> * print "testing xlinkurl: 0.000
18:18:11.505 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:11.506 [print] testing xlinkurl:http://inspire.ec.europa.eu/id/document/tg/au
> Given url link 0.000
> When method HEAD 0.684
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
2:41.502
Scenario Outline Check dataset record in ngr voor 280ed37a-b8d2-4ac5-8567-04d84fad3a41
Steps
Given path 'geonetwork/srv/dut/inspire' 0.000
And param service = 'CSW' 0.000
And param version = '2.0.2' 0.000
And param request = 'GetRecordById' 0.000
And param id = '280ed37a-b8d2-4ac5-8567-04d84fad3a41' 0.000
And param elementsetname = 'full' 0.000
And param outputSchema = 'http://www.isotc211.org/2005/gmd' 0.000
When method get 0.513
Then status 200 0.000
* eval karate.embed(responseBytes,'application/xml') 0.000
This file cannot be displayed. Use download button to get the content as file.
And match /GetRecordByIdResponse/MD_Metadata/fileIdentifier/CharacterString == '280ed37a-b8d2-4ac5-8567-04d84fad3a41' 0.000
* def title = get response //citation/CI_Citation/title/CharacterString 0.000
* print 'title:' + title 0.000
18:17:26.435 [print] title:Natura 2000 (INSPIRE geharmoniseerd)
* print title 0.000
18:17:26.435 [print] Natura 2000 (INSPIRE geharmoniseerd)
* def xlinks = get response /GetRecordByIdResponse//@href 0.000
* def ObjectValues = 0.000
function (obj) {
var vals = [];
for (var prop in obj) {
vals.push(obj[prop]);
}
return vals;
}
* def filterx = 0.000
function (array1, array2) {
return array1.filter(function (x) { return array2.indexOf(x) < 0; });
}
* def nlinks = filterx(ObjectValues(xlinks), ObjectValues(callonesresult.knownlinks)) 0.000
* print nlinks 0.000
18:17:26.436 [print] [
  "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit",
  "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-2009-147",
  "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43",
  "https://creativecommons.org/publicdomain/mark/*/deed.nl",
  "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply",
  "https://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd",
  "https://inspire.ec.europa.eu/id/document/tg/ps",
  "https://data.overheid.nl/organisatie/PDOK"
]
* def id = "280ed37a-b8d2-4ac5-8567-04d84fad3a41" 0.001
* call read('def/checkxlinkurl.template.feature') karate.mapWithKey(nlinks ,'link') 1:20.494
com.intuit.karate.exception.KarateException: ngr-check-dataset-record.feature:69 - feature call (loop) failed: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
caller: classpath:InspireTest/ngr/datasetrecords/ngr-check-dataset-record.feature
items: [{link=http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit}, {link=http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-2009-147}, {link=http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43}, {link=https://creativecommons.org/publicdomain/mark/*/deed.nl}, {link=http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply}, {link=https://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd}, {link=https://inspire.ec.europa.eu/id/document/tg/ps}, {link=https://data.overheid.nl/organisatie/PDOK}]
errors:
-------
feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60438, url: http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43, response: 
-------
feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
-------
feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1300, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:18:46.932 feature call (loop) failed at index: 8
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://data.overheid.nl/organisatie/PDOK"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1300, url: https://data.overheid.nl/organisatie/PDOK, response:
[0] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit"
}
> * print "testing xlinkurl: 0.000
18:17:26.439 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:26.440 [print] testing xlinkurl:http://standaarden.overheid.nl/owms/terms/Ministerie_van_Landbouw,_Natuur_en_Voedselkwaliteit
> Given url link 0.000
> When method HEAD 0.533
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[1] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41"
}
> * print "testing xlinkurl: 0.000
18:17:26.974 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:26.974 [print] testing xlinkurl:http://nationaalgeoregister.nl/geonetwork/srv/dut/catalog.search#/metadata/280ed37a-b8d2-4ac5-8567-04d84fad3a41
> Given url link 0.000
> When method HEAD 0.221
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[2] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-2009-147"
}
> * print "testing xlinkurl: 0.000
18:17:27.198 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:27.198 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-2009-147
> Given url link 0.000
> When method HEAD 7.265
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[3] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43"
}
> * print "testing xlinkurl: 0.000
18:17:34.465 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:17:34.465 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43
> Given url link 0.000
> When method HEAD 1:0.647
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60438, url: http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43, response: 
18:18:35.113 status code was: 502, expected: 200, response time: 60438, url: http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[4] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://creativecommons.org/publicdomain/mark/*/deed.nl"
}
> * print "testing xlinkurl: 0.000
18:18:35.113 feature call (loop) failed at index: 3
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43"}
checkxlinkurl.template.feature:15 - status code was: 502, expected: 200, response time: 60438, url: http://inspire.ec.europa.eu/metadata-codelist/PriorityDataset/Natura2000Sites-dir-1992-43, response: 
18:18:35.114 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:35.114 [print] testing xlinkurl:https://creativecommons.org/publicdomain/mark/*/deed.nl
> Given url link 0.000
> When method HEAD 0.059
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:18:35.174 status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[5] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply"
}
> * print "testing xlinkurl: 0.000
18:18:35.174 feature call (loop) failed at index: 4
caller: classpath:InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature
arg: {"link":"https://creativecommons.org/publicdomain/mark/*/deed.nl"}
checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 60, url: https://creativecommons.org/publicdomain/mark/*/deed.nl, response: 
18:18:35.175 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:35.176 [print] testing xlinkurl:http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply
> Given url link 0.000
> When method HEAD 9.003
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[6] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd"
}
> * print "testing xlinkurl: 0.000
18:18:44.181 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:44.181 [print] testing xlinkurl:https://inspire.ec.europa.eu/schemas/ps/4.0/ProtectedSites.xsd
> Given url link 0.000
> When method HEAD 0.427
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[7] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://inspire.ec.europa.eu/id/document/tg/ps"
}
> * print "testing xlinkurl: 0.000
18:18:44.610 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:44.611 [print] testing xlinkurl:https://inspire.ec.europa.eu/id/document/tg/ps
> Given url link 0.000
> When method HEAD 0.468
> Then status 200 0.000
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000
[8] InspireTest/ngr/datasetrecords/def/checkxlinkurl.template.feature 0.000
{
  "link": "https://data.overheid.nl/organisatie/PDOK"
}
> * print "testing xlinkurl: 0.000
18:18:45.081 [print]
> * def link = __arg.link 0.000
> * print "testing xlinkurl:" + link 0.000
18:18:45.082 [print] testing xlinkurl:https://data.overheid.nl/organisatie/PDOK
> Given url link 0.000
> When method HEAD 1.850
> Then status 200 0.000
com.intuit.karate.exception.KarateException: checkxlinkurl.template.feature:15 - status code was: 404, expected: 200, response time: 1300, url: https://data.overheid.nl/organisatie/PDOK, response: 
18:18:46.932 status code was: 404, expected: 200, response time: 1300, url: https://data.overheid.nl/organisatie/PDOK, response:
> And match responseHeaders['Content-Type'][0] == '#string' 0.000
> * def mystorage = Java.type('storage.DataStorage') 0.000
> * def db = new mystorage 0.000
> * eval db.mywriteln('"'+ link + '","'+ title + '"' , 'target/surefire-reports/foundlink.csv') 0.000